DEV Community

Cover image for Make your own YouTube AdBlocker for FREE!

Make your own YouTube AdBlocker for FREE!

CristoferK on April 10, 2021

Hello! Are you tired of watching youtube ads? Why not make your own adblocker for free! Let's start! setInterval(function(){ var skipButton...
Collapse
 
czed13 profile image
Info Comment hidden by post author - thread only accessible via permalink

What a terrible code to share.
Having "matches": [""] means it will run on ALL webpages, not only youtube.* domains.

Not to mention you're not "blocking" the ads but waiting for them to timeout and clicking on the "skip ad" button : skipButton[0].click();

100% Clickbaity title

Collapse
 
thebugcoder profile image
TheBugCoder

Nice!!

Some comments have been hidden by the post's author - find out more