Video overlay banners can also be handled the same way, as I found out they have a different container than Video ads. Hiding it via CSS would make it longer "visible" and publisher would get paid better as closing the banner is handled by youtube's base.js so it's probably tracked.
Video ads would continue to be handled the same way, with a click.
The final code would be like this:
JS
setInterval(()=>{for(constbuttonofdocument.getElementsByClassName("ytp-ad-skip-button")){button.click();// "Skip Ad" or "Skip Ads" buttons}},300);
That's a good idea! Thanks!
I will add it to the next version.
Video overlay banners can also be handled the same way, as I found out they have a different container than Video ads. Hiding it via CSS would make it longer "visible" and publisher would get paid better as closing the banner is handled by youtube's
base.js
so it's probably tracked.Video ads would continue to be handled the same way, with a click.
The final code would be like this:
JS
CSS
Much better!