Youtube: AutoPlay Next Right Away

Play next video within 1 second of the end of a video.

  1. // ==UserScript==
  2. // @name Youtube: AutoPlay Next Right Away
  3. // @namespace https://github.com/Zren
  4. // @version 1
  5. // @description Play next video within 1 second of the end of a video.
  6. // @icon https://youtube.com/favicon.ico
  7. // @author Zren
  8. // @include http*://*.youtube.com/*
  9. // @include http*://youtube.com/*
  10. // @include http*://*.youtu.be/*
  11. // @include http*://youtu.be/*
  12. // ==/UserScript==
  13.  
  14.  
  15. setInterval(function() {
  16. var e = document.querySelector('.ytp-upnext:not([style="display: none;"]) a.ytp-upnext-autoplay-icon');
  17. if (e) {
  18. e.click();
  19. }
  20. }, 1000);