From 5e96cdcad8f57a3d591566db92c665ddec9a0c3e Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 24 Dec 2020 23:26:22 +0100 Subject: [PATCH] Alternative fix for streamable (#128) --- src/ext/conf/ExtConfPatches.js | 18 ++++++++++++++++++ src/ext/conf/ExtensionConf.js | 9 +++++++++ 2 files changed, 27 insertions(+) diff --git a/src/ext/conf/ExtConfPatches.js b/src/ext/conf/ExtConfPatches.js index f2dcef6..242e449 100644 --- a/src/ext/conf/ExtConfPatches.js +++ b/src/ext/conf/ExtConfPatches.js @@ -418,6 +418,24 @@ const ExtensionConfPatch = [ } } } + }, { + forVersion: '4.5.1.1', + updateFn: (userOptions, defaultOptions) => { + if (!userOptions.sites['streamable.com']) { + userOptions.sites['streamable.com'] = { + mode: 3, + autoar: 3, + type: 'official', + stretch: -1, + videoAlignment: -1, + keyboardShortcutsEnabled: 0, + css: ".player {text-align: left}" + }; + } + if (!userOptions.sites['streamable.com'].css) { + userOptions.sites['streamable.com'].css = '.player {text-align: left}' + }; + } } ]; diff --git a/src/ext/conf/ExtensionConf.js b/src/ext/conf/ExtensionConf.js index c208bb7..d8b3412 100644 --- a/src/ext/conf/ExtensionConf.js +++ b/src/ext/conf/ExtensionConf.js @@ -1086,6 +1086,15 @@ var ExtensionConf = { } } }, + "streamable.com": { + mode: 3, + autoar: 3, + type: 'official', + stretch: -1, + videoAlignment: -1, + keyboardShortcutsEnabled: 0, + css: ".player {text-align: left}" + }, "vimeo.com": { mode: 3, autoar: 3,