LEFT | RIGHT |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 var excluded = isWhitelisted(tab.url); | 113 var excluded = isWhitelisted(tab.url); |
114 iconFilename = excluded ? "icons/abp-19-whitelisted.png" : "icons/abp-19.png
"; | 114 iconFilename = excluded ? "icons/abp-19-whitelisted.png" : "icons/abp-19.png
"; |
115 } | 115 } |
116 | 116 |
117 tab.browserAction.setIcon(iconFilename); | 117 tab.browserAction.setIcon(iconFilename); |
118 tab.browserAction.setTitle(ext.i18n.getMessage("name")); | 118 tab.browserAction.setTitle(ext.i18n.getMessage("name")); |
119 | 119 |
120 iconAnimation.registerTab(tab, iconFilename); | 120 iconAnimation.registerTab(tab, iconFilename); |
121 | 121 |
122 if (excluded) | 122 if (excluded) |
123 ext.contextMenus.hideMenu(); | 123 ext.contextMenus.hideMenuItems(); |
124 else | 124 else |
125 ext.contextMenus.showMenu(); | 125 ext.contextMenus.showMenuItems(); |
126 } | 126 } |
127 | 127 |
128 /** | 128 /** |
129 * Old versions for Opera stored patterns.ini in the localStorage object, this | 129 * Old versions for Opera stored patterns.ini in the localStorage object, this |
130 * will import it into FilterStorage properly. | 130 * will import it into FilterStorage properly. |
131 * @return {Boolean} true if data import is in progress | 131 * @return {Boolean} true if data import is in progress |
132 */ | 132 */ |
133 function importOldData() | 133 function importOldData() |
134 { | 134 { |
135 if ("patterns.ini" in localStorage) | 135 if ("patterns.ini" in localStorage) |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 tab.sendMessage({type: "clickhide-deactivate"}); | 445 tab.sendMessage({type: "clickhide-deactivate"}); |
446 refreshIconAndContextMenu(tab); | 446 refreshIconAndContextMenu(tab); |
447 }); | 447 }); |
448 | 448 |
449 setTimeout(function() | 449 setTimeout(function() |
450 { | 450 { |
451 var notificationToShow = Notification.getNextToShow(); | 451 var notificationToShow = Notification.getNextToShow(); |
452 if (notificationToShow) | 452 if (notificationToShow) |
453 showNotification(notificationToShow); | 453 showNotification(notificationToShow); |
454 }, 3 * 60 * 1000); | 454 }, 3 * 60 * 1000); |
LEFT | RIGHT |