Plex Skip right is 10 seconds

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

目前为 2024-03-12 提交的版本。查看 最新版本

// ==UserScript==
// @name     Plex Skip right is 10 seconds
// @namespace   https://www.stardecimal.com/
// @include     http://127.0.0.1:32400/web/index.html#!/media/*
// @description Pressing the right arrow key skips 10 seconds instead of 30 seconds
// @author      lifeweaver
// @version  2
// @license MIT
// @grant    none
// ==/UserScript==


(function() {
  document.body.addEventListener('keydown', (e) => {
    if(e.keyCode === 39) {
      e.preventDefault();
      e.stopImmediatePropagation();
      let player = document.querySelector('video')
      player.currentTime = player.currentTime + 10
    }
  });

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址