OLD | NEW |
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 Loading... |
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 => |
| 869 { |
| 870 setLinks("dnt", url); |
| 871 }); |
868 | 872 |
869 // Advanced tab | 873 // Advanced tab |
870 let customize = document.querySelectorAll("#customize li[data-pref]"); | 874 let customize = document.querySelectorAll("#customize li[data-pref]"); |
871 customize = Array.prototype.map.call(customize, (checkbox) => | 875 customize = Array.prototype.map.call(customize, (checkbox) => |
872 { | 876 { |
873 return checkbox.getAttribute("data-pref"); | 877 return checkbox.getAttribute("data-pref"); |
874 }); | 878 }); |
875 for (let key of customize) | 879 for (let key of customize) |
876 { | 880 { |
877 getPref(key, (value) => | 881 getPref(key, (value) => |
(...skipping 29 matching lines...) Expand all Loading... |
907 setLinks("report-issue", link); | 911 setLinks("report-issue", link); |
908 }); | 912 }); |
909 getDocLink("adblock_plus_report_ad", (link) => | 913 getDocLink("adblock_plus_report_ad", (link) => |
910 { | 914 { |
911 setLinks("report-ad", link); | 915 setLinks("report-ad", link); |
912 }); | 916 }); |
913 getDocLink("adblock_plus_report_bug", (link) => | 917 getDocLink("adblock_plus_report_bug", (link) => |
914 { | 918 { |
915 setLinks("report-bug", link); | 919 setLinks("report-bug", link); |
916 }); | 920 }); |
917 getDocLink("reporter_other_link", (link) => | 921 getDocLink("{application}_support", url => |
918 { | 922 { |
919 setLinks("report-forum", link); | 923 setLinks("visit-forum", url); |
920 }); | 924 }); |
921 getDocLink("social_twitter", (link) => | 925 getDocLink("social_twitter", (link) => |
922 { | 926 { |
923 E("twitter").setAttribute("href", link); | 927 E("twitter").setAttribute("href", link); |
924 }); | 928 }); |
925 getDocLink("social_facebook", (link) => | 929 getDocLink("social_facebook", (link) => |
926 { | 930 { |
927 E("facebook").setAttribute("href", link); | 931 E("facebook").setAttribute("href", link); |
928 }); | 932 }); |
929 getDocLink("social_gplus", (link) => | 933 getDocLink("social_gplus", (link) => |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 }); | 1381 }); |
1378 ext.backgroundPage.sendMessage({ | 1382 ext.backgroundPage.sendMessage({ |
1379 type: "subscriptions.listen", | 1383 type: "subscriptions.listen", |
1380 filter: ["added", "disabled", "homepage", "lastDownload", "removed", | 1384 filter: ["added", "disabled", "homepage", "lastDownload", "removed", |
1381 "title", "downloadStatus", "downloading"] | 1385 "title", "downloadStatus", "downloading"] |
1382 }); | 1386 }); |
1383 | 1387 |
1384 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 1388 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
1385 window.addEventListener("hashchange", onHashChange, false); | 1389 window.addEventListener("hashchange", onHashChange, false); |
1386 } | 1390 } |
OLD | NEW |