diff options
author | Teddy Wing | 2020-05-05 01:50:09 +0200 |
---|---|---|
committer | Teddy Wing | 2020-05-05 01:50:09 +0200 |
commit | 28eec915a92226520a9e761e12b86b7f7e87ab98 (patch) | |
tree | d8dd90d1e0f085ce752b44efeb236cb1b7319223 | |
parent | df30eb5ad783077ac24dcae3ec7330c1d0cf74d6 (diff) | |
download | netflix-immersive-28eec915a92226520a9e761e12b86b7f7e87ab98.tar.bz2 |
Remove `webRequest` code
This doesn't work. It's not possible to modify the response body using
this API, and even if I could, it turns out the flags I intended to
modify aren't related to the small-window-credits.
-rw-r--r-- | background.js | 18 | ||||
-rw-r--r-- | manifest.json | 8 |
2 files changed, 1 insertions, 25 deletions
diff --git a/background.js b/background.js index fe1179d..e69de29 100644 --- a/background.js +++ b/background.js @@ -1,18 +0,0 @@ -browser.webRequest.onCompleted.addListener( - function(details) { - var filter = browser.webRequest.filterResponseData(details.requestId); - - filter.onstop = function(event) { - var data = event.data; - - // TODO: transform `data` - - filter.write(data); - filter.disconnect(); - }; - }, - { - urls: ['https://www.netflix.com/watch/*'], - types: ['main_frame'] - } -); diff --git a/manifest.json b/manifest.json index 48c14fb..a57b67e 100644 --- a/manifest.json +++ b/manifest.json @@ -21,11 +21,5 @@ "background": { "scripts": ["background.js"] - }, - - "permissions": [ - "webRequest", - "webRequestBlocking", - "https://www.netflix.com/watch/*" - ] + } } |