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

Commit

Permalink
Actually fixing the grey circle issue
Browse files Browse the repository at this point in the history
Moved/modified the check outside of the ad loop.  The real issue was that we were only hiding popupContainer when there were less than 10 ads to be skipped.
  • Loading branch information
Entarra authored Feb 15, 2024
1 parent de69a46 commit 48bd16c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Youtube-Ad-blocker-Reminder-Remover.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,6 @@
const openAdCenterButton = document.querySelector('.ytp-ad-button-icon');
openAdCenterButton?.click();

var popupContainer = document.querySelector('body > ytd-app > ytd-popup-container > tp-yt-paper-dialog');
if (popupContainer) popupContainer.parentElement.style.display = 'none';

const blockAdButton = document.querySelector('[label="Block ad"]');
blockAdButton?.click();

Expand All @@ -165,6 +162,11 @@
if (video) video.play();
}

var popupContainer = document.querySelector('body > ytd-app > ytd-popup-container > tp-yt-paper-dialog');
if (popupContainer)
// popupContainer persists, lets not spam
if (popupContainer.style.display == "")
popupContainer.style.display = 'none';

//
// Speed Skip Method
Expand Down

0 comments on commit 48bd16c

Please sign in to comment.