Plex Skip right is 10 seconds

Pressing the right arrow key skips 10 seconds instead of 30 seconds

  1. // ==UserScript==
  2. // @name Plex Skip right is 10 seconds
  3. // @namespace https://www.stardecimal.com/
  4. // @include http://127.0.0.1:32400/web/index.html#!/media/*
  5. // @description Pressing the right arrow key skips 10 seconds instead of 30 seconds
  6. // @author lifeweaver
  7. // @version 3
  8. // @license MIT
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. (function() {
  14. document.body.addEventListener('keydown', (e) => {
  15. if(e.keyCode === 39 && document.querySelector('.show-video-player') != null) {
  16. e.preventDefault();
  17. e.stopImmediatePropagation();
  18. let player = document.querySelector('video')
  19. player.currentTime = player.currentTime + 10
  20. }
  21. });
  22.  
  23. })();