update for new gridview ads

This commit is contained in:
Alexander Bocken 2024-02-17 11:00:39 +01:00
parent 4e53b56e59
commit ba4f3a72a0
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -1,13 +1,13 @@
// ==UserScript== // ==UserScript==
// @name Auto Remove Ads // @name Auto Remove Ads
// @version 1.0.0 // @version 1.0.1
// @description Autoremove static ads // @description Autoremove static ads
// @author Alexander Bocken // @author Alexander Bocken
// @match *://*.youtube.com/* // @match *://*.youtube.com/*
// @exclude *://*.youtube.com/subscribe_embed?* // @exclude *://*.youtube.com/subscribe_embed?*
// ==/UserScript== // ==/UserScript==
setInterval(() => { setInterval(() => {
document.querySelectorAll('.ytd-page-top-ad-layout-renderer,.ytd-video-display-full-buttoned-renderer, ytd-display-ad-renderer,.ytd-banner-promo-renderer-background,.ytd-player-legacy-desktop-watch-ads-renderer').forEach( document.querySelectorAll('.ytd-page-top-ad-layout-renderer,.ytd-display-ad-renderer,.ytd-video-display-full-buttoned-renderer, ytd-display-ad-renderer,.ytd-banner-promo-renderer-background,.ytd-player-legacy-desktop-watch-ads-renderer').forEach(
el => { el => {
el.remove(); el.remove();
}) })