| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 818 filterTextbox.value = ""; | 818 filterTextbox.value = ""; |
| 819 }); | 819 }); |
| 820 } | 820 } |
| 821 E("custom-filters-add").addEventListener("submit", function(e) | 821 E("custom-filters-add").addEventListener("submit", function(e) |
| 822 { | 822 { |
| 823 e.preventDefault(); | 823 e.preventDefault(); |
| 824 addCustomFilters(); | 824 addCustomFilters(); |
| 825 }, false); | 825 }, false); |
| 826 var customFilterEditButtons = document.querySelectorAll("#custom-filters-edi t-wrapper button"); | 826 var customFilterEditButtons = document.querySelectorAll("#custom-filters-edi t-wrapper button"); |
| 827 | 827 |
| 828 //Help tab | 828 // Help tab |
| 829 getDocLink("faq", function(link) | 829 getDocLink("faq", function(link) |
| 830 { | 830 { |
| 831 E("link-faq").setAttribute("href", link); | 831 E("link-faq").setAttribute("href", link); |
| 832 }); | 832 }); |
| 833 getDocLink("social_twitter", function(link) | 833 getDocLink("social_twitter", function(link) |
| 834 { | 834 { |
| 835 E("link-twitter").setAttribute("href", link); | 835 E("link-twitter").setAttribute("href", link); |
| 836 }); | 836 }); |
| 837 getDocLink("social_facebook", function(link) | 837 getDocLink("social_facebook", function(link) |
| 838 { | 838 { |
| 839 E("link-facebook").setAttribute("href", link); | 839 E("link-facebook").setAttribute("href", link); |
| 840 }); | 840 }); |
| 841 getDocLink("social_gplus", function(link) | 841 getDocLink("social_gplus", function(link) |
| 842 { | 842 { |
| 843 E("link-gplus").setAttribute("href", link); | 843 E("link-gplus").setAttribute("href", link); |
| 844 }); | 844 }); |
| 845 getDocLink("social_renren", function(link) | 845 getDocLink("social_renren", function(link) |
| 846 { | 846 { |
| 847 E("link-renren").setAttribute("href", link); | 847 E("link-renren").setAttribute("href", link); |
| 848 }); | 848 }); |
| 849 getDocLink("social_weibo", function(link) | 849 getDocLink("social_weibo", function(link) |
| 850 { | 850 { |
| 851 E("link-weibo").setAttribute("href", link); | 851 E("link-weibo").setAttribute("href", link); |
| 852 }); | 852 }); |
|
Thomas Greiner
2017/01/31 14:29:22
We should definitely try to make this more elegant
saroyanm
2017/02/01 13:22:18
Agree, we can discuss details in #4856
Thomas Greiner
2017/02/02 12:28:47
Thanks.
| |
| 853 | 853 |
| 854 // Set forum link | 854 // Set forum link |
| 855 ext.backgroundPage.sendMessage( | 855 ext.backgroundPage.sendMessage( |
|
saroyanm
2017/01/27 17:23:43
I think we create a function, similar to the "getD
Thomas Greiner
2017/01/31 14:29:22
I guess you're referring to https://hg.adblockplus
saroyanm
2017/02/01 13:22:18
Agree, you want me to tackle it here, or in a sepa
Thomas Greiner
2017/02/02 12:28:47
Let's tackle this separately. It does look like no
saroyanm
2017/02/08 13:13:29
I'm having a hard time of thinking about the new t
| |
| 856 { | 856 { |
| 857 type: "app.get", | 857 type: "app.get", |
| 858 what: "platform" | 858 what: "platform" |
| 859 }, | 859 }, |
| 860 function(platform) | 860 function(platform) |
| 861 { | 861 { |
| 862 ext.backgroundPage.sendMessage( | 862 ext.backgroundPage.sendMessage( |
| 863 { | 863 { |
| 864 type: "app.get", | 864 type: "app.get", |
| 865 what: "application" | 865 what: "application" |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1316 ext.backgroundPage.sendMessage( | 1316 ext.backgroundPage.sendMessage( |
| 1317 { | 1317 { |
| 1318 type: "subscriptions.listen", | 1318 type: "subscriptions.listen", |
| 1319 filter: ["added", "disabled", "homepage", "lastDownload", "removed", | 1319 filter: ["added", "disabled", "homepage", "lastDownload", "removed", |
| 1320 "title", "downloadStatus", "downloading"] | 1320 "title", "downloadStatus", "downloading"] |
| 1321 }); | 1321 }); |
| 1322 | 1322 |
| 1323 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); | 1323 window.addEventListener("DOMContentLoaded", onDOMLoaded, false); |
| 1324 window.addEventListener("hashchange", onHashChange, false); | 1324 window.addEventListener("hashchange", onHashChange, false); |
| 1325 })(); | 1325 })(); |
| LEFT | RIGHT |