Last active
April 22, 2022 16:15
-
-
Save kaeverens/0cbcb18247d29d4bb173fdaab144bfcf to your computer and use it in GitHub Desktop.
tampermonkey script for music.youtube.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Remove music.youtube.com popup reminders | |
// @namespace http://tampermonkey.net/ | |
// @version 4 | |
// @description removes the "are you still there?" annoyances | |
// @author You | |
// @match https://music.youtube.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setInterval(()=>{ | |
var el=document.querySelector('ytmusic-you-there-renderer paper-button'); | |
el&&el.fire('click'); | |
el=document.querySelector('ytmusic-mealbar-promo-renderer'); | |
el&&el.parentNode.removeChild(el); | |
el=document.querySelector('.ytp-ad-skip-button'); | |
el&&el.fire('click'); | |
}, 500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment