SHARE
TWEET

skip youtube commercials and autocontinue

a guest Oct 18th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void function derp(){ setTimeout(()=>{
  2. if(document.querySelector('.ytp-ad-skip-button')){
  3.  document.querySelector('video').volume=0.1;
  4.  document.querySelector('.ytp-ad-skip-button').click();}
  5. else
  6. document.querySelector('video').volume = 1;
  7. derp();
  8. }
  9. ,500)}();
  10. window.continueButtonCheck ? clearInterval(window.continueButtonCheck) : undefined;
  11. window.continueButtonCheck = setInterval(()=>{
  12.     var derp = $('.style-scope .yt-button-renderer .style-blue-text .size-default');
  13.     if(derp && derp.innerText === "YES")
  14.         derp.parentElement.parentElement.click();
  15. },10000);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top