Reddit: detect player manually, fix site details popup

This commit is contained in:
Tamius Han 2019-06-24 14:05:37 +02:00
parent d2170eb937
commit 47e20721e6
2 changed files with 24 additions and 2 deletions

View File

@ -941,6 +941,28 @@ var ExtensionConf = {
}, },
css: '', 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": { "vimeo.com": {
mode: 3, mode: 3,
autoar: 3, autoar: 3,

View File

@ -200,13 +200,13 @@ export default {
toggleVideoManualQs() { toggleVideoManualQs() {
this.ensureSettings('video'); this.ensureSettings('video');
this.videoManualQs = !this.videoManualQs; 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(); this.settings.save();
}, },
togglePlayerManualQs() { togglePlayerManualQs() {
this.ensureSettings('player'); this.ensureSettings('player');
this.playerManualQs = !this.playerManualQs; 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(); this.settings.save();
}, },
toggleByNodeIndex() { toggleByNodeIndex() {