Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from epicmario7133/patch-1
Browse files Browse the repository at this point in the history
Remove Youtube Premium Ads
  • Loading branch information
TheRealJoelmatic authored Dec 1, 2023
2 parents 40a91d6 + 6f3ea75 commit d8160b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Youtube-Ad-blocker-Reminder-Remover.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -155,6 +157,7 @@
sparklesContainer?.remove();
mainContainer?.remove();
feedAd?.remove();
youtubepremium?.remove();
mastheadAd?.remove();
sponsor?.forEach((element) => {
if (element.getAttribute("id") === "panels") {
Expand Down

0 comments on commit d8160b5

Please sign in to comment.