From 6f3ea75ef242cd869942adf6c91d12151e17c6d3 Mon Sep 17 00:00:00 2001 From: EpicMario71 <56398081+epicmario7133@users.noreply.github.com> Date: Sun, 5 Nov 2023 17:29:28 +0100 Subject: [PATCH] Remove Youtube Premium Ads This will remove the YouTube premium advertising on the YouTube home page --- Youtube-Ad-blocker-Reminder-Remover.user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Youtube-Ad-blocker-Reminder-Remover.user.js b/Youtube-Ad-blocker-Reminder-Remover.user.js index 6e2a318..843cab6 100644 --- a/Youtube-Ad-blocker-Reminder-Remover.user.js +++ b/Youtube-Ad-blocker-Reminder-Remover.user.js @@ -140,6 +140,8 @@ const mastheadAd = document.querySelector('.ytd-video-masthead-ad-v3-renderer'); const sponsor = document.querySelectorAll("div#player-ads.style-scope.ytd-watch-flexy, div#panels.style-scope.ytd-watch-flexy"); const nonVid = document.querySelector(".ytp-ad-skip-button-modern"); + const youtubepremium = document.getElementById('masthead-ad'); + if (ad) { @@ -155,6 +157,7 @@ sparklesContainer?.remove(); mainContainer?.remove(); feedAd?.remove(); + youtubepremium?.remove(); mastheadAd?.remove(); sponsor?.forEach((element) => { if (element.getAttribute("id") === "panels") {