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

Unified Diff: background.js

Issue 29770586: Issue 6670 - Display the rewritten to info if applicable in the devtools (Closed) Base URL: https://hg.adblockplus.org/adblockplusui/
Patch Set: Added Mock data. Use hidden attribute. Refactor CSS Created May 7, 2018, 8:58 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 | devtools-panel.html » ('j') | skin/devtools-panel.css » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: background.js
===================================================================
--- a/background.js
+++ b/background.js
@@ -630,10 +630,27 @@
},
filter: {
text: "||example.com/some-annoying-popup$popup",
whitelisted: false,
userDefined: true,
subscription: null
}
});
+
+ // rewrite
+ panel.sendMessage({
+ type: "add-record",
+ request: {
+ url: "http://example.com/some-annoying-popup",
+ type: "OTHER",
+ docDomain: "example.com",
+ rewrittenTo: "http://example.com/some-annoying-popup?nopopup"
+ },
+ filter: {
+ text: "/(example\\.com\\/some-annoying-popup\\)$/$rewrite=$1?nopopup",
+ whitelisted: false,
+ userDefined: true,
+ subscription: null
+ }
+ });
});
}());
« no previous file with comments | « no previous file | devtools-panel.html » ('j') | skin/devtools-panel.css » ('J')

Powered by Google App Engine
This is Rietveld