YT - Controls

Control Youtube controls

  1. // ==UserScript==
  2. // @name YT - Controls
  3. // @namespace YTC
  4. // @description Control Youtube controls
  5. // @include http://*.youtube.*
  6. // @include https://*.youtube.*
  7. // @version 1
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. function YTC(css) {
  12. var head, style;
  13. head = document.getElementsByTagName('head')[0];
  14. if (!head) { return; }
  15. style = document.createElement('style');
  16. style.type = 'text/css';
  17. style.innerHTML = css;
  18. head.appendChild(style);
  19. }
  20.  
  21. YTC(
  22. '.ytp-next-button, .ytp-prev-button {display: none !important;}'
  23. );