mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +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);
|
||||
},
|
||||
},
|
||||
{
|
||||
label: "Remove upgrade button",
|
||||
type: "checkbox",
|
||||
checked: config.get("options.removeUpgradeButton"),
|
||||
click: (item) => {
|
||||
config.set("options.removeUpgradeButton", item.checked);
|
||||
},
|
||||
},
|
||||
...(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
|
||||
setupSongInfo();
|
||||
|
||||
|
||||
@ -28,3 +28,9 @@ ytmusic-search-box.ytmusic-nav-bar {
|
||||
ytmusic-mealbar-promo-renderer {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Disable Image Selection */
|
||||
img {
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user