From 855d8007a76185dcb899111994b002c85ed7a9d9 Mon Sep 17 00:00:00 2001 From: TC Date: Sun, 4 Oct 2020 18:23:30 +0200 Subject: [PATCH] Add plugin to hide video player --- plugins/hide-video-player/back.js | 6 ++++++ plugins/hide-video-player/style.css | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 plugins/hide-video-player/back.js create mode 100644 plugins/hide-video-player/style.css diff --git a/plugins/hide-video-player/back.js b/plugins/hide-video-player/back.js new file mode 100644 index 00000000..fa96b863 --- /dev/null +++ b/plugins/hide-video-player/back.js @@ -0,0 +1,6 @@ +const { injectCSS } = require("../utils"); +const path = require("path"); + +module.exports = win => { + injectCSS(win.webContents, path.join(__dirname, "style.css")); +}; diff --git a/plugins/hide-video-player/style.css b/plugins/hide-video-player/style.css new file mode 100644 index 00000000..b65f0c69 --- /dev/null +++ b/plugins/hide-video-player/style.css @@ -0,0 +1,11 @@ +/* Hide the video player */ +#main-panel { + display: none !important; +} + +/* Make the side-panel full width */ +.side-panel.ytmusic-player-page { + max-width: 100% !important; + width: 100% !important; + margin: 0 !important; +}