Useful JavaScript snippet when you are watching YT Videos



Need an invisible hand to click that button to skip that thing? Here I found it from stackoverflow:

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)})();
loading...

Leave a Reply

Your email address will not be published.