Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: new-options.js

Issue 29555782: Issue 5701 - Inconsistent forum links and DNT link (Closed)
Left Patch Set: Use placeholder for application Created Sept. 25, 2017, 8:47 p.m.
Right Patch Set: Created Sept. 25, 2017, 9:26 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « new-options.html ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 }, false); 858 }, false);
859 859
860 getDocLink("contribute", (link) => 860 getDocLink("contribute", (link) =>
861 { 861 {
862 E("contribute").href = link; 862 E("contribute").href = link;
863 }); 863 });
864 getDocLink("acceptable_ads_criteria", (link) => 864 getDocLink("acceptable_ads_criteria", (link) =>
865 { 865 {
866 setLinks("enable-aa-description", link); 866 setLinks("enable-aa-description", link);
867 }); 867 });
868 getDocLink("adblock_plus_{application}_dnt", url => 868 getDocLink("adblock_plus_{browser}_dnt", url =>
869 { 869 {
870 setLinks("dnt", url); 870 setLinks("dnt", url);
871 }); 871 });
872 872
873 // Advanced tab 873 // Advanced tab
874 let customize = document.querySelectorAll("#customize li[data-pref]"); 874 let customize = document.querySelectorAll("#customize li[data-pref]");
875 customize = Array.prototype.map.call(customize, (checkbox) => 875 customize = Array.prototype.map.call(customize, (checkbox) =>
876 { 876 {
877 return checkbox.getAttribute("data-pref"); 877 return checkbox.getAttribute("data-pref");
878 }); 878 });
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 setLinks("report-issue", link); 911 setLinks("report-issue", link);
912 }); 912 });
913 getDocLink("adblock_plus_report_ad", (link) => 913 getDocLink("adblock_plus_report_ad", (link) =>
914 { 914 {
915 setLinks("report-ad", link); 915 setLinks("report-ad", link);
916 }); 916 });
917 getDocLink("adblock_plus_report_bug", (link) => 917 getDocLink("adblock_plus_report_bug", (link) =>
918 { 918 {
919 setLinks("report-bug", link); 919 setLinks("report-bug", link);
920 }); 920 });
921 getDocLink("{application}_support", url => 921 getDocLink("{browser}_support", url =>
922 { 922 {
923 setLinks("visit-forum", url); 923 setLinks("visit-forum", url);
924 }); 924 });
925 getDocLink("social_twitter", (link) => 925 getDocLink("social_twitter", (link) =>
926 { 926 {
927 E("twitter").setAttribute("href", link); 927 E("twitter").setAttribute("href", link);
928 }); 928 });
929 getDocLink("social_facebook", (link) => 929 getDocLink("social_facebook", (link) =>
930 { 930 {
931 E("facebook").setAttribute("href", link); 931 E("facebook").setAttribute("href", link);
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 }); 1381 });
1382 ext.backgroundPage.sendMessage({ 1382 ext.backgroundPage.sendMessage({
1383 type: "subscriptions.listen", 1383 type: "subscriptions.listen",
1384 filter: ["added", "disabled", "homepage", "lastDownload", "removed", 1384 filter: ["added", "disabled", "homepage", "lastDownload", "removed",
1385 "title", "downloadStatus", "downloading"] 1385 "title", "downloadStatus", "downloading"]
1386 }); 1386 });
1387 1387
1388 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); 1388 window.addEventListener("DOMContentLoaded", onDOMLoaded, false);
1389 window.addEventListener("hashchange", onHashChange, false); 1389 window.addEventListener("hashchange", onHashChange, false);
1390 } 1390 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld