From caf13d113cb8f98537769a902150816e221663a4 Mon Sep 17 00:00:00 2001 From: Joelmatic <78729990+TheRealJoelmatic@users.noreply.github.com> Date: Mon, 1 Jan 2024 19:05:19 +0000 Subject: [PATCH] Update Youtube-Ad-blocker-Reminder-Remover.user.js --- Youtube-Ad-blocker-Reminder-Remover.user.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Youtube-Ad-blocker-Reminder-Remover.user.js b/Youtube-Ad-blocker-Reminder-Remover.user.js index 55caac4..f54abde 100644 --- a/Youtube-Ad-blocker-Reminder-Remover.user.js +++ b/Youtube-Ad-blocker-Reminder-Remover.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Remove Adblock Thing // @namespace http://tampermonkey.net/ -// @version 2.8 +// @version 2.9 // @description Removes Adblock Thing // @author JoelMatic // @match https://www.youtube.com/* @@ -162,7 +162,6 @@ const blockAdButton = document.querySelector('[label="Block ad"]'); const blockAdButtonConfirm = document.querySelector('.Eddif [label="CONTINUE"] button'); const closeAdCenterButton = document.querySelector('.zBmRhe-Bz112c'); - const adCenterDialog = document.querySelector('yt-about-this-ad-renderer'); if (video) video.playbackRate = 10; if (video) video.volume = 0; @@ -181,7 +180,6 @@ blockAdButtonConfirm?.click(); closeAdCenterButton?.click(); - if (adCenterDialog) adCenterDialog.style.display = 'none'; if (popupContainer) popupContainer.style.display = "block"; if (debugMessages) console.log("Remove Adblock Thing: skipped Ad (✔️)"); @@ -197,7 +195,7 @@ const sponsor = document.querySelectorAll("div#player-ads.style-scope.ytd-watch-flexy, div#panels.style-scope.ytd-watch-flexy"); const style = document.createElement('style'); - + style.textContent = ` ytd-action-companion-ad-renderer, div#root.style-scope.ytd-display-ad-renderer.yt-simple-endpoint, @@ -206,6 +204,8 @@ ytd-in-feed-ad-layout-renderer, .ytd-video-masthead-ad-v3-renderer, div#player-ads.style-scope.ytd-watch-flexy, + yt-about-this-ad-renderer, + yt-mealbar-promo-renderer, #masthead-ad { display: none !important; @@ -246,6 +246,10 @@ function checkForUpdate(){ + if (!(window.location.href.includes("youtube.com"))){ + return; + } + if (hasIgnoredUpdate){ return; }