Greasy Fork

来自缓存

Greasy Fork is available in English.

Plex Skip right is 10 seconds

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

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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  3
// @license MIT
// @grant    none
// ==/UserScript==


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

})();