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: Rename rewrittenTo to rewrittenUrl Created May 15, 2018, 4:29 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') | no next file with comments »
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",
+ rewrittenUrl: "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') | no next file with comments »

Powered by Google App Engine
This is Rietveld