From 47e20721e6b6a7a9becfbc0a785d71c7856310f6 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 24 Jun 2019 14:05:37 +0200 Subject: [PATCH] Reddit: detect player manually, fix site details popup --- src/ext/conf/ExtensionConf.js | 22 ++++++++++++++++++++++ src/popup/panels/SiteDetailsPanel.vue | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/ext/conf/ExtensionConf.js b/src/ext/conf/ExtensionConf.js index be89945..02fc2b6 100644 --- a/src/ext/conf/ExtensionConf.js +++ b/src/ext/conf/ExtensionConf.js @@ -941,6 +941,28 @@ var ExtensionConf = { }, css: '', }, + "www.reddit.com" : { + mode: ExtensionMode.Enabled, + autoar: currentBrowser.firefox ? ExtensionMode.Enabled : ExtensionMode.Disabled, + override: false, + type: 'official', + stretch: Stretch.Default, + videoAlignment: VideoAlignment.Default, + keyboardShortcutsEnabled: ExtensionMode.Default, + DOM: { + video: { + manual: false, + querySelectors: '', + additionalCss: '', + }, + player: { + manual: true, + useRelativeAncestor: true, + videoAncestor: 1, + } + }, + css: '', + }, "vimeo.com": { mode: 3, autoar: 3, diff --git a/src/popup/panels/SiteDetailsPanel.vue b/src/popup/panels/SiteDetailsPanel.vue index c849662..31d3396 100644 --- a/src/popup/panels/SiteDetailsPanel.vue +++ b/src/popup/panels/SiteDetailsPanel.vue @@ -200,13 +200,13 @@ export default { toggleVideoManualQs() { this.ensureSettings('video'); this.videoManualQs = !this.videoManualQs; - this.settings.active.sites[this.site].DOM.video.enabled = this.videoManualQs; + this.settings.active.sites[this.site].DOM.video.manual = this.videoManualQs; this.settings.save(); }, togglePlayerManualQs() { this.ensureSettings('player'); this.playerManualQs = !this.playerManualQs; - this.settings.active.sites[this.site].DOM.player.enabled = this.playerManualQs; + this.settings.active.sites[this.site].DOM.player.manual = this.playerManualQs; this.settings.save(); }, toggleByNodeIndex() {