mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
Video Toggle Plugin
This commit is contained in:
11
plugins/video-toggle/back.js
Normal file
11
plugins/video-toggle/back.js
Normal file
@ -0,0 +1,11 @@
|
||||
const { injectCSS } = require("../utils");
|
||||
const path = require("path");
|
||||
const { urlToHttpOptions } = require("url");
|
||||
|
||||
module.exports = (win, options) => {
|
||||
if (options.forceHide) {
|
||||
injectCSS(win.webContents, path.join(__dirname, "forceHide.css"));
|
||||
} else {
|
||||
injectCSS(win.webContents, path.join(__dirname, "buttonSwitcher.css"));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user