mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 12:42:06 +00:00
fix: Remove upgrade button
https://github.com/th-ch/youtube-music/pull/1206
This commit is contained in:
@ -155,10 +155,11 @@ function onApiLoaded() {
|
|||||||
|
|
||||||
// Remove upgrade button
|
// Remove upgrade button
|
||||||
if (config.get('options.removeUpgradeButton')) {
|
if (config.get('options.removeUpgradeButton')) {
|
||||||
const upgradeButton: HTMLElement | null = $('ytmusic-pivot-bar-item-renderer[tab-id="SPunlimited"]');
|
const styles = document.createElement('style');
|
||||||
if (upgradeButton) {
|
styles.innerHTML = `ytmusic-guide-section-renderer #items ytmusic-guide-entry-renderer:last-child {
|
||||||
upgradeButton.style.display = 'none';
|
display: none;
|
||||||
}
|
}`;
|
||||||
|
document.head.appendChild(styles);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide / Force show like buttons
|
// Hide / Force show like buttons
|
||||||
|
|||||||
Reference in New Issue
Block a user