From 3d64a08b08d5f5a68807d9161edaec027e795850 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 15 Dec 2020 20:13:23 +0100 Subject: [PATCH 1/3] =?UTF-8?q?Remove=20autoarPreventConditions=20?= =?UTF-8?q?=E2=80=94=20they're=20redundant=20with=20new=20way=20of=20calcu?= =?UTF-8?q?lating=20AR=20and,=20as=20of=20now,=20interfere=20with=20netfli?= =?UTF-8?q?x'=20ultrawide=20workarounds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ext/conf/ExtConfPatches.js | 12 ++++++++++++ src/ext/conf/ExtensionConf.js | 26 -------------------------- 2 files changed, 12 insertions(+), 26 deletions(-) diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index 29c7228..d6b8df4 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -406,6 +406,18 @@ const ExtensionConfPatch = [ } } } + }, { + forVersion: '4.5.0.1', + updateFn: (userOptions, defaultOptions) => { + for (const site in userOptions.sites) { + try { + delete userOptions[sites].autoarPreventConditions + } catch (e) { + // doesn't matter if site doesn't have that option, + // everything is still fine + } + } + } } ]; diff --git a/src/ext/conf/ExtensionConf.js b/src/ext/conf/ExtensionConf.js index ee64f64..8485026 100644 --- a/src/ext/conf/ExtensionConf.js +++ b/src/ext/conf/ExtensionConf.js @@ -1039,19 +1039,6 @@ var ExtensionConf = { videoAlignment: VideoAlignment.Default, keyboardShortcutsEnabled: ExtensionMode.Default, arPersistence: true, // persist aspect ratio between different videos - autoarPreventConditions: { // prevents autoar on following conditions - videoStyleString: { // if video style string thing does anything of what follows - containsProperty: { // if video style string has any of these properties (listed as keys) - 'height': { // if 'height' property is present in style attribute, we prevent autoar from running - allowedValues: [ // unless attribute is equal to anything in here. Optional. - '100%' - ] - } - // 'width': true // this would prevent aard from running if