diff --git a/.local/share/qutebrowser/greasemonkey/remove_more_yt_ads.js b/.local/share/qutebrowser/greasemonkey/remove_more_yt_ads.js new file mode 100644 index 0000000..aef90ad --- /dev/null +++ b/.local/share/qutebrowser/greasemonkey/remove_more_yt_ads.js @@ -0,0 +1,14 @@ +// ==UserScript== +// @name Auto Remove Ads +// @version 1.0.0 +// @description Autoremove static ads +// @author Alexander Bocken +// @match *://*.youtube.com/* +// @exclude *://*.youtube.com/subscribe_embed?* +// ==/UserScript== +setInterval(() => { + document.querySelectorAll('.ytd-page-top-ad-layout-renderer,.ytd-video-display-full-buttoned-renderer, ytd-display-ad-renderer').forEach( + el => { + el.remove(); + }) +}, 50)