From c14aa99e5bb2dde422ef3a5579a5f744e16e67e3 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 13 Jun 2021 02:18:47 +0200 Subject: [PATCH 1/2] Fix extconfpatches --- src/ext/conf/ExtConfPatches.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index b9faabb..8174279 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -504,15 +504,11 @@ const ExtensionConfPatch = [ }, { forVersion: '5.0.4', updateFn: (userOptions, defaultOptions) => { - try { - userOptions.sites['wwww.disneyplus.com'].DOM.player = { - ... userOptions.sites['wwww.disneyplus.com'].DOM.player, - querySelectors: ".btm-media-client-element", - useRelativeAncestor: false, - videoAncestor: 1 - } - } catch (e) { - // do nothing + userOptions.sites['www.disneyplus.com'].DOM.player = { + ... userOptions.sites['www.disneyplus.com'].DOM.player, + querySelectors: ".btm-media-client-element", + useRelativeAncestor: true, + videoAncestor: 1 } } } From 7729bf545efdd3cc3f0c1240dc9c1db923ec2c3f Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 13 Jun 2021 02:19:05 +0200 Subject: [PATCH 2/2] shut up some of dem vue warnings --- webpack.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index aa5dbf3..8a04cd1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -163,7 +163,10 @@ const config = { }), new webpack.DefinePlugin({ 'process.env.BROWSER': JSON.stringify(process.env.BROWSER), - 'process.env.CHANNEL': JSON.stringify(process.env.CHANNEL) + 'process.env.CHANNEL': JSON.stringify(process.env.CHANNEL), + + '__VUE_OPTIONS_API__': true, + '__VUE_PROD_DEVTOOLS__': false }) ], optimization: { @@ -179,6 +182,9 @@ const config = { if (config.mode === 'production') { config.plugins = (config.plugins || []).concat([ new webpack.DefinePlugin({ + '__VUE_OPTIONS_API__': true, + '__VUE_PROD_DEVTOOLS__': false, + 'process.env': { NODE_ENV: '"production"', },