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

Unified Diff: background.js

Issue 29329677: Issue 2396 - Add CSS property filter message responder (Closed)
Patch Set: Remove specificOnly parameter from getRulesForDomain stub Created Nov. 5, 2015, 3:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | messageResponder.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
diff --git a/background.js b/background.js
index ff1f2d471a08c7b90e6b839336086bf0c3c30755..f71b87710ca577c0960eb4253195ede09ae507c8 100644
--- a/background.js
+++ b/background.js
@@ -63,7 +63,7 @@
Prefs: {
"subscriptions_exceptionsurl": "https://easylist-downloads.adblockplus.org/exceptionrules.txt"
}
- }
+ };
modules.subscriptionClasses = {
Subscription: function(url)
@@ -164,9 +164,8 @@
modules.filterValidation =
{
- parseFilter: function(text)
+ parseFilter: function(text)
{
-
if (params.filterError)
return {error: "Invalid filter"};
return {filter: modules.filterClasses.Filter.fromText(text)};
@@ -199,6 +198,12 @@
}
};
+ modules.cssRules = {
+ CSSRules: {
+ getRulesForDomain: function(domain) { }
+ }
+ };
+
var notifierListeners = [];
modules.filterNotifier = {
FilterNotifier: {
@@ -246,7 +251,7 @@
var filters = [
"@@||alternate.de^$document",
- "@@||der.postillion.com^$document",
+ "@@||der.postillion.com^$document",
"@@||taz.de^$document",
"@@||amazon.de^$document",
"||biglemon.am/bg_poster/banner.jpg",
@@ -281,7 +286,7 @@
global.seenDataCorruption = params.seenDataCorruption;
global.filterlistsReinitialized = params.filterlistsReinitialized;
-
+
if (params.addSubscription)
{
// We don't know how long it will take for the page to fully load
« no previous file with comments | « no previous file | messageResponder.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld