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-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 |
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 "use strict"; | 18 "use strict"; |
19 | 19 |
20 let {splitSelector} = require("common"); | 20 let {splitSelector} = require("./adblockpluscore/lib/common"); |
kzar
2018/03/28 13:50:33
What about this one? (The file is in adblockplusco
Jon Sonesen
2018/03/30 03:09:55
Acknowledged.
| |
21 let {ElemHideEmulation} = | 21 let {ElemHideEmulation} = |
22 require("./adblockpluscore/lib/content/elemHideEmulation"); | 22 require("./adblockpluscore/lib/content/elemHideEmulation"); |
23 | 23 |
24 // This variable is also used by our other content scripts. | 24 // This variable is also used by our other content scripts. |
25 let elemhide; | 25 let elemhide; |
26 | 26 |
27 const typeMap = new Map([ | 27 const typeMap = new Map([ |
28 ["img", "IMAGE"], | 28 ["img", "IMAGE"], |
29 ["input", "IMAGE"], | 29 ["input", "IMAGE"], |
30 ["picture", "IMAGE"], | 30 ["picture", "IMAGE"], |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
548 let element = event.target; | 548 let element = event.target; |
549 if (/^i?frame$/.test(element.localName)) | 549 if (/^i?frame$/.test(element.localName)) |
550 checkCollapse(element); | 550 checkCollapse(element); |
551 }, true); | 551 }, true); |
552 } | 552 } |
553 | 553 |
554 window.checkCollapse = checkCollapse; | 554 window.checkCollapse = checkCollapse; |
555 window.elemhide = elemhide; | 555 window.elemhide = elemhide; |
556 window.typeMap = typeMap; | 556 window.typeMap = typeMap; |
557 window.getURLsFromElement = getURLsFromElement; | 557 window.getURLsFromElement = getURLsFromElement; |
LEFT | RIGHT |