| 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 |
| + } |
| + }); |
| }); |
| }()); |