Stop YouTube scrolling

Stops YouTube autoscrolling when pressing on the bottom bar (video chapters)

  1. // ==UserScript==
  2. // @name Stop YouTube scrolling
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Stops YouTube autoscrolling when pressing on the bottom bar (video chapters)
  6. // @author vesku
  7. // @match https://www.youtube.com/*
  8. // @grant GM_addStyle
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. //
  16. GM_addStyle(`
  17. .ytp-chapter-container {
  18. pointer-events: none;
  19. }
  20. .ytp-chapter-container * {
  21. pointer-events: auto;
  22. }
  23. `);
  24. })();