mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
remove upgrade button + makes img unselectable
This commit is contained in:
8
menu.js
8
menu.js
@ -76,6 +76,14 @@ const mainMenuTemplate = (win) => {
|
|||||||
config.set("options.resumeOnStart", item.checked);
|
config.set("options.resumeOnStart", item.checked);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Remove upgrade button",
|
||||||
|
type: "checkbox",
|
||||||
|
checked: config.get("options.removeUpgradeButton"),
|
||||||
|
click: (item) => {
|
||||||
|
config.set("options.removeUpgradeButton", item.checked);
|
||||||
|
},
|
||||||
|
},
|
||||||
...(is.windows() || is.linux()
|
...(is.windows() || is.linux()
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -38,6 +38,11 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Remove upgrade button
|
||||||
|
if (config.get("options.removeUpgradeButton")) {
|
||||||
|
document.querySelector('[tab-id*="SPunlimited"]').style.display = "none";
|
||||||
|
}
|
||||||
|
|
||||||
// inject song-info provider
|
// inject song-info provider
|
||||||
setupSongInfo();
|
setupSongInfo();
|
||||||
|
|
||||||
|
|||||||
@ -28,3 +28,9 @@ ytmusic-search-box.ytmusic-nav-bar {
|
|||||||
ytmusic-mealbar-promo-renderer {
|
ytmusic-mealbar-promo-renderer {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Disable Image Selection */
|
||||||
|
img {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user