TheRealJoelmatic / RemoveAdblockThing

The intrusive "Ad blocker are not allowed on YouTube" message is annoying. This open-source project aims to address this issue by providing a solution to bypass YouTube's ad blocker detection
http://joelmatic.com/
MIT License
5.9k stars 318 forks source link

Pausing vidoes with adblock turned off #3603

Open Mushkrem opened 1 week ago

Mushkrem commented 1 week ago

Script version 5.6

Describe the bug With adblock turned off, and popup-remover turned on, it's impossible to pause a video, as it keeps on un-pausing.

    // Enable The Undetected Adblocker
    const adblocker = false;

    // Enable The Popup remover (pointless if you have the Undetected Adblocker)
    const removePopup = true;

Expected behavior the ability to pause videos.

Additional context Probably fixed in 38789a2cbc3c54991886db3391233e47179c1280, probably, because cba to check. I simply changed the if clause inside the popupRemover function.

            // Check if the video is paused after removing the popup
-           if (!video.paused) return;
+           if (!video.paused || !adblocker) return;
            // UnPause The Video
            video.play();
        }, 1000);
    }