Skip to content

Instantly share code, notes, and snippets.

@kaeverens
Last active April 22, 2022 16:15
Show Gist options
  • Save kaeverens/0cbcb18247d29d4bb173fdaab144bfcf to your computer and use it in GitHub Desktop.
Save kaeverens/0cbcb18247d29d4bb173fdaab144bfcf to your computer and use it in GitHub Desktop.
tampermonkey script for music.youtube.com
// ==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