Reddit: detect player manually, fix site details popup
This commit is contained in:
parent
d2170eb937
commit
47e20721e6
@ -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,
|
||||||
|
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user