mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-15 12:21:47 +00:00
change css query to target upgrade button
This commit is contained in:
@ -139,7 +139,7 @@ function onApiLoaded() {
|
|||||||
|
|
||||||
// Remove upgrade button
|
// Remove upgrade button
|
||||||
if (config.get("options.removeUpgradeButton")) {
|
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) {
|
if (upgradeButton) {
|
||||||
upgradeButton.style.display = "none";
|
upgradeButton.style.display = "none";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user