From 28eec915a92226520a9e761e12b86b7f7e87ab98 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 5 May 2020 01:50:09 +0200 Subject: 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. --- background.js | 18 ------------------ manifest.json | 8 +------- 2 files changed, 1 insertion(+), 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/*" - ] + } } -- cgit v1.2.3