remove upgrade button + makes img unselectable

This commit is contained in:
Araxeus
2021-10-15 15:40:34 +03:00
parent d775e3d588
commit ce4580605d
3 changed files with 19 additions and 0 deletions

View File

@ -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()
? [
{

View File

@ -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();

View File

@ -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;
}