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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 15 * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
16 */ | 16 */ |
17 | 17 |
| 18 var require = ext.backgroundPage.getWindow().require; |
| 19 |
18 with(require("filterClasses")) | 20 with(require("filterClasses")) |
19 { | 21 { |
20 this.Filter = Filter; | 22 this.Filter = Filter; |
21 this.WhitelistFilter = WhitelistFilter; | 23 this.WhitelistFilter = WhitelistFilter; |
22 } | 24 } |
23 with(require("subscriptionClasses")) | 25 with(require("subscriptionClasses")) |
24 { | 26 { |
25 this.Subscription = Subscription; | 27 this.Subscription = Subscription; |
26 this.SpecialSubscription = SpecialSubscription; | 28 this.SpecialSubscription = SpecialSubscription; |
27 this.DownloadableSubscription = DownloadableSubscription; | 29 this.DownloadableSubscription = DownloadableSubscription; |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 links[i].href = arguments[i + 1]; | 647 links[i].href = arguments[i + 1]; |
646 links[i].setAttribute("target", "_blank"); | 648 links[i].setAttribute("target", "_blank"); |
647 } | 649 } |
648 else if (typeof arguments[i + 1] == "function") | 650 else if (typeof arguments[i + 1] == "function") |
649 { | 651 { |
650 links[i].href = "javascript:void(0);"; | 652 links[i].href = "javascript:void(0);"; |
651 links[i].addEventListener("click", arguments[i + 1], false); | 653 links[i].addEventListener("click", arguments[i + 1], false); |
652 } | 654 } |
653 } | 655 } |
654 } | 656 } |
OLD | NEW |