qutebrowser: remove more ads

This commit is contained in:
Alexander Bocken 2024-02-01 11:26:55 +01:00
parent 5f0fe257aa
commit 8d4aabc052
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -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)