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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 | 958 |
959 getDocLink("subscriptions", (link) => | 959 getDocLink("subscriptions", (link) => |
960 { | 960 { |
961 E("filter-lists-learn-more").setAttribute("href", link); | 961 E("filter-lists-learn-more").setAttribute("href", link); |
962 }); | 962 }); |
963 | 963 |
964 E("custom-filters-raw").setAttribute("placeholder", | 964 E("custom-filters-raw").setAttribute("placeholder", |
965 getMessage("options_customFilters_edit_placeholder", ["/ads/track/*"])); | 965 getMessage("options_customFilters_edit_placeholder", ["/ads/track/*"])); |
966 | 966 |
967 // Help tab | 967 // Help tab |
968 getDocLink("adblock_plus_report_issue", (link) => | |
969 { | |
970 setLinks("report-issue", link); | |
971 }); | |
972 getDocLink("adblock_plus_report_ad", (link) => | |
973 { | |
974 setLinks("report-ad", link); | |
975 }); | |
976 getDocLink("adblock_plus_report_bug", (link) => | 968 getDocLink("adblock_plus_report_bug", (link) => |
977 { | 969 { |
978 setLinks("report-bug", link); | 970 setLinks("report-bug", link); |
979 }); | 971 }); |
980 getDocLink("{browser}_support", url => | 972 getDocLink("{browser}_support", url => |
981 { | 973 { |
982 setLinks("visit-forum", url); | 974 setLinks("visit-forum", url); |
983 }); | 975 }); |
984 getDocLink("social_twitter", (link) => | 976 getDocLink("social_twitter", (link) => |
985 { | 977 { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1467 }); | 1459 }); |
1468 browser.runtime.sendMessage({ | 1460 browser.runtime.sendMessage({ |
1469 type: "subscriptions.listen", | 1461 type: "subscriptions.listen", |
1470 filter: ["added", "disabled", "homepage", "lastDownload", "removed", | 1462 filter: ["added", "disabled", "homepage", "lastDownload", "removed", |
1471 "title", "downloadStatus", "downloading"] | 1463 "title", "downloadStatus", "downloading"] |
1472 }); | 1464 }); |
1473 | 1465 |
1474 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 1466 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
1475 window.addEventListener("hashchange", onHashChange, false); | 1467 window.addEventListener("hashchange", onHashChange, false); |
1476 } | 1468 } |
OLD | NEW |