From 820af9b133aa7bff1bab990aee3d460c9ff00e85 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 13 Sep 2021 22:47:27 +0200 Subject: [PATCH] Patch for netflix --- src/ext/conf/ExtConfPatches.js | 7 +++++++ src/ext/conf/ExtensionConf.ts | 10 +++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index b00357c..fa2f87f 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -234,6 +234,13 @@ const ExtensionConfPatch = [ playerNodeCss: "", } } + }, { + forVersion: '5.0.8', + updateFn: (userOptions, defaultOptions) => { + userOptions.sites['www.netflix.com'].DOM.player = { + manual: false + } + } } ]; diff --git a/src/ext/conf/ExtensionConf.ts b/src/ext/conf/ExtensionConf.ts index 6bd56d1..e5eca49 100644 --- a/src/ext/conf/ExtensionConf.ts +++ b/src/ext/conf/ExtensionConf.ts @@ -1048,13 +1048,9 @@ const ExtensionConf: SettingsInterface = { videoAlignment: VideoAlignmentType.Default, keyboardShortcutsEnabled: ExtensionMode.Default, arPersistence: true, // persist aspect ratio between different videos - "DOM": { - "player": { - "manual": true, - "querySelectors": ".VideoContainer", - "additionalCss": "", - "useRelativeAncestor": false, - "playerNodeCss": "" + DOM: { + player: { + manual: false, // as of 2021-09, netflix no longer requires manual player class. This may change in the future tho. } } },