qutebrowser: remove more ads
This commit is contained in:
parent
5f0fe257aa
commit
8d4aabc052
14
.local/share/qutebrowser/greasemonkey/remove_more_yt_ads.js
Normal file
14
.local/share/qutebrowser/greasemonkey/remove_more_yt_ads.js
Normal 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)
|
Loading…
Reference in New Issue
Block a user