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

Side by Side Diff: include.preload.js

Issue 29532730: Noissue - Rebase current master tip to edge bookmark (Closed)
Patch Set: Created Aug. 31, 2017, 2:55 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ext/content.js ('k') | jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 */ 18 "use strict";
19 19
20 "use strict"; 20 let {splitSelector} = require("common");
21 let {ElemHideEmulation} = require("content_elemHideEmulation");
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 }
OLDNEW
« no previous file with comments | « ext/content.js ('k') | jquery-ui/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld