mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
* Custom: like before but slightly position * Native: use the native video-toggle * Disabled: force disable the native video-toggle
46 lines
1.3 KiB
JavaScript
46 lines
1.3 KiB
JavaScript
const { setMenuOptions } = require("../../config/plugins");
|
|
|
|
module.exports = (win, options) => [
|
|
{
|
|
label: "Mode",
|
|
submenu: [
|
|
{
|
|
label: "Custom toggle",
|
|
type: "radio",
|
|
checked: options.mode === 'custom',
|
|
click: () => {
|
|
options.mode = 'custom';
|
|
setMenuOptions("video-toggle", options);
|
|
}
|
|
},
|
|
{
|
|
label: "Native toggle",
|
|
type: "radio",
|
|
checked: options.mode === 'native',
|
|
click: () => {
|
|
options.mode = 'native';
|
|
setMenuOptions("video-toggle", options);
|
|
}
|
|
},
|
|
{
|
|
label: "Disabled",
|
|
type: "radio",
|
|
checked: options.mode === 'disabled',
|
|
click: () => {
|
|
options.mode = 'disabled';
|
|
setMenuOptions("video-toggle", options);
|
|
}
|
|
},
|
|
]
|
|
},
|
|
{
|
|
label: "Force Remove Video Tab",
|
|
type: "checkbox",
|
|
checked: options.forceHide,
|
|
click: item => {
|
|
options.forceHide = item.checked;
|
|
setMenuOptions("video-toggle", options);
|
|
}
|
|
}
|
|
];
|