Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: include.preload.js

Issue 29529646: Issue 5584 - Update adblockpluscore dependency to hg:217eff0504a5 (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Left Patch Set: Created Aug. 28, 2017, 1:44 p.m.
Right Patch Set: Properly use module for content script Created Aug. 29, 2017, 1:54 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « dependencies ('k') | metadata.chrome » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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 /* globals ElemHideEmulation, splitSelector */
19
20 "use strict"; 18 "use strict";
19
20 let {splitSelector} = require("common");
21 let {ElemHideEmulation} = require("content_elemHideEmulation");
Wladimir Palant 2017/08/29 15:13:24 Mind you, this won't work any more once we switch
hub 2017/08/29 16:46:54 I'll add a not to issue #5080 then.
kzar 2017/08/30 10:22:20 Don't worry I've taken a note of it, I need to add
21 22
22 // This variable is also used by our other content scripts. 23 // This variable is also used by our other content scripts.
23 let elemhide; 24 let elemhide;
24 25
25 const typeMap = new Map([ 26 const typeMap = new Map([
26 ["img", "IMAGE"], 27 ["img", "IMAGE"],
27 ["input", "IMAGE"], 28 ["input", "IMAGE"],
28 ["picture", "IMAGE"], 29 ["picture", "IMAGE"],
29 ["audio", "MEDIA"], 30 ["audio", "MEDIA"],
30 ["video", "MEDIA"], 31 ["video", "MEDIA"],
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 checkCollapse(event.target); 523 checkCollapse(event.target);
523 }, true); 524 }, true);
524 525
525 document.addEventListener("load", event => 526 document.addEventListener("load", event =>
526 { 527 {
527 let element = event.target; 528 let element = event.target;
528 if (/^i?frame$/.test(element.localName)) 529 if (/^i?frame$/.test(element.localName))
529 checkCollapse(element); 530 checkCollapse(element);
530 }, true); 531 }, true);
531 } 532 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld