Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
fix: Remove upgrade button
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Sep 3, 2023
1 parent 278618b commit c0d7972
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ function onApiLoaded() {

// Remove upgrade button
if (config.get('options.removeUpgradeButton')) {
const upgradeButton: HTMLElement | null = $('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);
}

// Hide / Force show like buttons
Expand Down

0 comments on commit c0d7972

Please sign in to comment.