Hi guys, I was searching for something on StackOverflow and found this topic. I’m not suggesting you to do it, just educational information, that this JavaScript code is somehow useful. I don’t know how it works technically but it works. It works like an invisible hand to click that button to do that thing…
javascript:(function(){setInterval(function() { var $cross = document.getElementsByClassName("ytp-ad-overlay-close-container")[0]; var $skip = document.getElementsByClassName("ytp-ad-skip-button")[0]; if ($cross != undefined) $cross.click(); if ($skip != undefined) $skip.click() }, 2000)})();