What does HackerNews think of fadblock?
Friendly Adblock for YouTube: A fast, lightweight, and undetectable YouTube Ads Blocker for Chrome, Opera and Firefox.
Language:
CSS
If anyone is curious, I found the source code for this:
https://github.com/0x48piraj/fadblock
Seems to do a lot of DOM querying using a setTimeout
if (isAd && skipLock) {
const videoPlayer = document.getElementsByClassName("video-stream")[0];
videoPlayer.muted = true; // videoPlayer.volume = 0;
videoPlayer.currentTime = videoPlayer.duration - 0.1;
videoPlayer.paused && videoPlayer.play()
// CLICK ON THE SKIP AD BTN
document.querySelector(".ytp-ad-skip-button")?.click();
document.querySelector(".ytp-ad-skip-button-modern")?.click();
}
So it looks for the ad player, mutes it, fast forwards it, and automatically clicks on the "skip" button (if available, not all ads are skip-able)This seems to be the repository for it: https://github.com/0x48piraj/fadblock