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

Commit

Permalink
Merge pull request #1 from Entarra/Entarra-grey-circle-fix-pt2
Browse files Browse the repository at this point in the history
Actually fixing the grey circle issue
  • Loading branch information
Entarra authored Feb 15, 2024
2 parents de69a46 + 48bd16c commit b73832a
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 b73832a

Please sign in to comment.