mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 11:21:46 +00:00
change css query to target upgrade button
This commit is contained in:
@ -139,7 +139,7 @@ function onApiLoaded() {
|
||||
|
||||
// Remove upgrade button
|
||||
if (config.get("options.removeUpgradeButton")) {
|
||||
const upgradeButton = $('ytmusic-pivot-bar-item-renderer[tab-id="SPunlimited"]')
|
||||
const upgradeButton = $('ytmusic-guide-section-renderer #items:last-child') // Last child of #items
|
||||
if (upgradeButton) {
|
||||
upgradeButton.style.display = "none";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user