| Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| 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("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} = require("content_elemHideEmulation"); | 21 let {ElemHideEmulation} = | 
| 22 require("./adblockpluscore/lib/content/elemHideEmulation"); | |
| 22 | 23 | 
| 23 // This variable is also used by our other content scripts. | 24 // This variable is also used by our other content scripts. | 
| 24 let elemhide; | 25 let elemhide; | 
| 25 | 26 | 
| 26 const typeMap = new Map([ | 27 const typeMap = new Map([ | 
| 27 ["img", "IMAGE"], | 28 ["img", "IMAGE"], | 
| 28 ["input", "IMAGE"], | 29 ["input", "IMAGE"], | 
| 29 ["picture", "IMAGE"], | 30 ["picture", "IMAGE"], | 
| 30 ["audio", "MEDIA"], | 31 ["audio", "MEDIA"], | 
| 31 ["video", "MEDIA"], | 32 ["video", "MEDIA"], | 
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 547 let element = event.target; | 548 let element = event.target; | 
| 548 if (/^i?frame$/.test(element.localName)) | 549 if (/^i?frame$/.test(element.localName)) | 
| 549 checkCollapse(element); | 550 checkCollapse(element); | 
| 550 }, true); | 551 }, true); | 
| 551 } | 552 } | 
| 552 | 553 | 
| 553 window.checkCollapse = checkCollapse; | 554 window.checkCollapse = checkCollapse; | 
| 554 window.elemhide = elemhide; | 555 window.elemhide = elemhide; | 
| 555 window.typeMap = typeMap; | 556 window.typeMap = typeMap; | 
| 556 window.getURLsFromElement = getURLsFromElement; | 557 window.getURLsFromElement = getURLsFromElement; | 
| OLD | NEW |