Skip to content

Commit

Permalink
Merge pull request #1206 from GoudronViande24/master
Browse files Browse the repository at this point in the history
Fix Remove upgrade button
  • Loading branch information
th-ch authored Sep 3, 2023
2 parents 85793d7 + 48b0469 commit 88dea85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ function onApiLoaded() {

// Remove upgrade button
if (config.get("options.removeUpgradeButton")) {
const upgradeButton = $('ytmusic-pivot-bar-item-renderer[tab-id="SPunlimited"]')
if (upgradeButton) {
upgradeButton.style.display = "none";
}
const styles = document.createElement("style");
styles.innerHTML = `
ytmusic-guide-section-renderer #items ytmusic-guide-entry-renderer:last-child {
display: none;
}
`;
document.head.appendChild(styles);
}


Expand Down

0 comments on commit 88dea85

Please sign in to comment.