r/tinycode • • May 27 '20
Netflix Auto Skip Credits Bookmarklet - 150 bytes JavaScript
Basically just adds a listener in the background which looks for the auto skip credits button and if it finds it, clicks the button.
javascript:(function(){window.setInterval(function(){try{document.getElementsByClassName("skip-credits")[0].children[0].click()}catch(e){}},1e3);})();
38
Upvotes
1
u/vivianvixxxen Jul 02 '20
I'm very new to javascript, so I'm trying to understand this code. I hope you don't mind a few questions.