From 9bd3db39df07fb0e04cac00a1d51f597b9249d16 Mon Sep 17 00:00:00 2001 From: Dan Chen Date: Sat, 25 Apr 2020 22:30:29 +0800 Subject: [PATCH] =?UTF-8?q?Replace=20player=20patching=20with=20JSON.parse?= =?UTF-8?q?()=20hook=20=F0=9F=96=96=F0=9F=96=96=F0=9F=96=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 11 -- src/content.js | 105 ------------ src/nflx-player-patch.js | 352 --------------------------------------- src/nflxmultisubs.js | 18 ++ 4 files changed, 18 insertions(+), 468 deletions(-) delete mode 100644 src/nflx-player-patch.js diff --git a/src/background.js b/src/background.js index fda3701..ccd23f6 100644 --- a/src/background.js +++ b/src/background.js @@ -1,17 +1,6 @@ const kDefaultSettings = require('./default-settings'); -chrome.webRequest.onBeforeRequest.addListener(details => { - console.log(`Denying: ${details.url}`); - return { cancel: true, }; -}, -{ - urls: ['https://assets.nflxext.com/*cadmium-playercore*'], - types: ['script'], -}, -['blocking']); - - //////////////////////////////////////////////////////////////////////////////// diff --git a/src/content.js b/src/content.js index c43fb16..fe4acd3 100644 --- a/src/content.js +++ b/src/content.js @@ -1,9 +1,4 @@ -const acorn = require('acorn'); const console = require('./console'); -const { patch } = require('./nflx-player-patch'); - - -//////////////////////////////////////////////////////////////////////////////// // updated when we got `