mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +00:00
fix(Skip Disliked Song): updated querySelector (#3667)
Co-authored-by: Joel Carlos <joel.carlos@merkle.com>
This commit is contained in:
@ -21,9 +21,7 @@ export default createPlugin<
|
|||||||
this.observer = new MutationObserver(() => {
|
this.observer = new MutationObserver(() => {
|
||||||
if (dislikeBtn?.getAttribute('like-status') == 'DISLIKE') {
|
if (dislikeBtn?.getAttribute('like-status') == 'DISLIKE') {
|
||||||
document
|
document
|
||||||
.querySelector<HTMLButtonElement>(
|
.querySelector<HTMLButtonElement>('yt-icon-button.next-button')
|
||||||
'tp-yt-paper-icon-button.next-button',
|
|
||||||
)
|
|
||||||
?.click();
|
?.click();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user