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 #218 from Entarra/main
Browse files Browse the repository at this point in the history
Small fix for the white box issue
  • Loading branch information
TheRealJoelmatic authored Dec 13, 2023
2 parents 08a98e1 + 8642236 commit db22191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Youtube-Ad-blocker-Reminder-Remover.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
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;
Expand All @@ -180,6 +181,7 @@
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 (✔️)");
Expand Down

0 comments on commit db22191

Please sign in to comment.