From e2d393d500e80b8d227a16c42b2ed58ab4901a72 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 9 Mar 2020 22:36:17 +0100 Subject: [PATCH] Fixes for netflix, disney+ --- CHANGELOG.md | 3 +- src/ext/conf/ExtConfPatches.js | 49 ++++++++++++++++++++++++++++++ src/ext/conf/ExtensionConf.js | 41 +++++++++++++++++++++++++ src/ext/uw-bg.js | 4 +-- src/popup/panels/WhatsNewPanel.vue | 3 +- 5 files changed, 96 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5521f21..e11b08e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,8 @@ QoL improvements for me: * Ensured that Vue part of the content script (logger UI) only loads when necessary in order to fix breakage on certain sites (#96). * Disabling (or enabling, if running in whitelist-only mode) specific sites used to not work (#91). This issue appears to have been fixed. -* Default stretch mode for sites is now probably being observed, too (#94). +* Default stretch mode for sites is now probably being observed, too (#94). +* Fixed netflix (and possibly disney+ ) * It's been almost a month and Chrome Web Store still hasn't finished the review of the 4.4.4.1 (and 4.4.4.2) revisions because when it comes to incompetence, it's hard to expect anything less from Google. I've did some proverbial yelling at the support in hopes that Chrome version will finally see an update (disclaimer: when I said yelling I really mean a polite request, because support staff doesn't deserve abuse because a different department is utter shite at doing their jobs). ### v4.4.5 diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index 3f27ac2..30ec9b4 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -319,6 +319,55 @@ const ExtensionConfPatch = [ } } } + }, { + forVersion: '4.4.6', + updateFn: (userOptions, defaultOptions) => { + if (!userOptions.sites['www.netflix.com'].DOM) { + userOptions.sites['www.netflix.com']['DOM'] = { + "player": { + "manual": true, + "querySelectors": ".VideoContainer", + "additionalCss": "", + "useRelativeAncestor": false, + "playerNodeCss": "" + } + } + } + if (!userOptions.sites['www.disneyplus.com']) { + userOptions.sites['www.disneyplus.com'] = { + mode: ExtensionMode.Enabled, + autoar: ExtensionMode.Enabled, + override: false, + type: 'community', + stretch: Stretch.Default, + 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 runing if