| 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("./adblockpluscore/lib/common"); | |
|
Sebastian Noack
2018/09/28 12:38:16
It seems this import is redundant now.
Manish Jethani
2018/09/28 12:40:39
Done.
| |
| 21 let {ElemHideEmulation} = | 20 let {ElemHideEmulation} = |
| 22 require("./adblockpluscore/lib/content/elemHideEmulation"); | 21 require("./adblockpluscore/lib/content/elemHideEmulation"); |
| 23 | 22 |
| 24 // This variable is also used by our other content scripts. | 23 // This variable is also used by our other content scripts. |
| 25 let contentFiltering; | 24 let contentFiltering; |
| 26 | 25 |
| 27 const typeMap = new Map([ | 26 const typeMap = new Map([ |
| 28 ["img", "IMAGE"], | 27 ["img", "IMAGE"], |
| 29 ["input", "IMAGE"], | 28 ["input", "IMAGE"], |
| 30 ["picture", "IMAGE"], | 29 ["picture", "IMAGE"], |
| (...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 557 let element = event.target; | 556 let element = event.target; |
| 558 if (/^i?frame$/.test(element.localName)) | 557 if (/^i?frame$/.test(element.localName)) |
| 559 checkCollapse(element); | 558 checkCollapse(element); |
| 560 }, true); | 559 }, true); |
| 561 } | 560 } |
| 562 | 561 |
| 563 window.checkCollapse = checkCollapse; | 562 window.checkCollapse = checkCollapse; |
| 564 window.contentFiltering = contentFiltering; | 563 window.contentFiltering = contentFiltering; |
| 565 window.typeMap = typeMap; | 564 window.typeMap = typeMap; |
| 566 window.getURLsFromElement = getURLsFromElement; | 565 window.getURLsFromElement = getURLsFromElement; |
| LEFT | RIGHT |