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

Side by Side Diff: safari/ext/content.js

Issue 6228201961422848: Issue 2064 - Configure indistinguishable request types in the abstraction layer (Closed)
Patch Set: Ignore MEDIA and FONT filters on Chrome Created March 2, 2015, 7:22 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 | « safari/ext/background.js ('k') | webrequest.js » ('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-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 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
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 { 71 {
72 case "frame": 72 case "frame":
73 case "iframe": 73 case "iframe":
74 type = "SUBDOCUMENT"; 74 type = "SUBDOCUMENT";
75 eventName = "load"; 75 eventName = "load";
76 break; 76 break;
77 case "img": 77 case "img":
78 case "input": 78 case "input":
79 type = "IMAGE"; 79 type = "IMAGE";
80 break; 80 break;
81 case "video":
82 case "audio":
83 case "source":
84 type = "MEDIA";
85 break;
81 case "object": 86 case "object":
82 case "embed": 87 case "embed":
83 type = "OBJECT"; 88 type = "OBJECT";
84 break; 89 break;
85 case "script": 90 case "script":
86 type = "SCRIPT"; 91 type = "SCRIPT";
87 break; 92 break;
88 case "link": 93 case "link":
89 if (/\bstylesheet\b/i.test(event.target.rel)) 94 if (/\bstylesheet\b/i.test(event.target.rel))
90 type = "STYLESHEET"; 95 type = "STYLESHEET";
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 }); 433 });
429 434
430 435
431 /* Detecting extension reload/disable/uninstall (not supported on Safari) */ 436 /* Detecting extension reload/disable/uninstall (not supported on Safari) */
432 437
433 ext.onExtensionUnloaded = { 438 ext.onExtensionUnloaded = {
434 addListener: function() {}, 439 addListener: function() {},
435 removeListener: function() {} 440 removeListener: function() {}
436 }; 441 };
437 })(); 442 })();
OLDNEW
« no previous file with comments | « safari/ext/background.js ('k') | webrequest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld