Left: | ||
Right: |
OLD | NEW |
---|---|
1 /* | 1 /* |
2 * This file is part of Adblock Plus <http://adblockplus.org/>, | 2 * This file is part of Adblock Plus <http://adblockplus.org/>, |
3 * Copyright (C) 2006-2013 Eyeo GmbH | 3 * Copyright (C) 2006-2013 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 16 matching lines...) Expand all Loading... | |
27 patternsbackupinterval: 24, | 27 patternsbackupinterval: 24, |
28 savestats: false, | 28 savestats: false, |
29 privateBrowsing: false, | 29 privateBrowsing: false, |
30 subscriptions_fallbackerrors: 5, | 30 subscriptions_fallbackerrors: 5, |
31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%", | 31 subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%V ERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNE LSTATUS%&responseStatus=%RESPONSESTATUS%", |
32 subscriptions_autoupdate: true, | 32 subscriptions_autoupdate: true, |
33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt", | 33 subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/excep tionrules.txt", |
34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" , | 34 documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%" , |
35 notificationdata: {}, | 35 notificationdata: {}, |
36 notificationurl: "https://notification.adblockplus.org/notification.json", | 36 notificationurl: "https://notification.adblockplus.org/notification.json", |
37 stats_total: {} | 37 stats_total: {}, |
38 show_iconnumber: true, | |
39 show_popupstats: true | |
Wladimir Palant
2013/12/03 12:55:43
"iconnumber" doesn't really explain what this is a
Thomas Greiner
2013/12/04 10:44:50
Done.
| |
38 }; | 40 }; |
39 | 41 |
40 let listeners = []; | 42 let listeners = []; |
41 | 43 |
42 function defineProperty(key) | 44 function defineProperty(key) |
43 { | 45 { |
44 let value = null; | 46 let value = null; |
45 Prefs.__defineGetter__(key, function() | 47 Prefs.__defineGetter__(key, function() |
46 { | 48 { |
47 if (value === null) | 49 if (value === null) |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 removeListener: function(listener) | 96 removeListener: function(listener) |
95 { | 97 { |
96 let index = listeners.indexOf(listener); | 98 let index = listeners.indexOf(listener); |
97 if (index >= 0) | 99 if (index >= 0) |
98 listeners.splice(index, 1); | 100 listeners.splice(index, 1); |
99 }, | 101 }, |
100 }; | 102 }; |
101 | 103 |
102 for (let key in defaults) | 104 for (let key in defaults) |
103 defineProperty(key); | 105 defineProperty(key); |
OLD | NEW |