From ce30c6faa8e02589e75049ab439fdbecfbdeed26 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 26 May 2019 02:53:29 +0200 Subject: [PATCH] Fix #64 --- src/ext/conf/ExtensionConf.js | 14 ++++++- src/ext/lib/Settings.js | 1 + src/ext/lib/video-transform/Resizer.js | 53 +++++++++++++++++++++++++- 3 files changed, 66 insertions(+), 2 deletions(-) diff --git a/src/ext/conf/ExtensionConf.js b/src/ext/conf/ExtensionConf.js index 8d5f339..b7ae85d 100644 --- a/src/ext/conf/ExtensionConf.js +++ b/src/ext/conf/ExtensionConf.js @@ -818,7 +818,6 @@ var ExtensionConf = { ExtensionMode.Disabled, // if autoar is disabled, this setting is irrelevant stretch: Stretch.NoStretch, // Default stretch mode. videoAlignment: VideoAlignment.Center, // Video alignment - }, "www.youtube.com" : { mode: ExtensionMode.Enabled, @@ -837,6 +836,19 @@ var ExtensionConf = { type: 'official', stretch: Stretch.Default, videoAlignment: VideoAlignment.Default, + 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 runing if