From 2eaab6d3a424afd3bccdd43ee5a1ead7bd10d2d5 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Fri, 14 Jun 2019 23:20:47 +0200 Subject: [PATCH] Update default settings: fix old.reddit, vimeo, disable imgur --- src/ext/conf/ExtensionConf.js | 36 ++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/src/ext/conf/ExtensionConf.js b/src/ext/conf/ExtensionConf.js index 5d1dea1..49132ae 100644 --- a/src/ext/conf/ExtensionConf.js +++ b/src/ext/conf/ExtensionConf.js @@ -936,23 +936,33 @@ var ExtensionConf = { player: { manual: true, useRelativeAncestor: true, - // querySelectors: '', videoAncestor: 1, - // additionalCss: '', } }, css: '', - // videoElement: { // extra stuff for video tag - // querySelectors: [], // array of strings with css selectors - // userCss: [], // additional styles that user can define for video element - // }, - // playerElement: { - // querySelectors: [], // array of strings with css selectors - // videoAncestor: 1, // if not falsey, the number represents how far up the DOM (in nodes) - // from video the player lies. Can also be object (valid properties are - // 'fullscreen', 'embed' and 'normal') - // userCss: [], - // } + }, + "vimeo.com": { + mode: 3, + autoar: 3, + type: 'official', + stretch: -1, + videoAlignment: -1, + keyboardShortcutsEnabled: 0, + DOM: { + player: { + manual: true, + querySelectors: ".player_outro_area", + useRelativeAncestor: false, + }, + }, + css: ".player_outro_area {\n width: 100% !important;\n display: flex !important;\n justify-content: center !important;\n}\n\n.player_container, .player {\n width: 100% !important; \n}" + }, + "imgur.com": { + mode: -1, + autoar: -1, + autoarFallback: 0, + stretch: -1, + videoAlignment: 1 }, } }