您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Pressing the right arrow key skips 10 seconds instead of 30 seconds
// ==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 } }); })();