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 /background.js | |
| 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.
Diffstat (limited to 'background.js')
| -rw-r--r-- | background.js | 18 | 
1 files changed, 0 insertions, 18 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'] -	} -); | 
