您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a shortcut (CTRL + Arrow Left / Right) with which you can skip time in a video by a custom amount.
// ==UserScript== // @name SkipTime // @namespace http://tampermonkey.net/ // @version 0.1 // @description Adds a shortcut (CTRL + Arrow Left / Right) with which you can skip time in a video by a custom amount. // @author idjawoo // @match *://*/* // @icon https://cdn.discordapp.com/attachments/816751871896453120/1023498342329757786/unknown.png // @grant none // @run-at document-end // @license MIT // ==/UserScript== (function () { "use strict"; // Amount of seconds to skip forward- adjust to your liking. const skipValue = 88; function waitForElm(selector) { return new Promise((resolve) => { if (document.querySelector(selector)) { return resolve(document.querySelector(selector)); } const observer = new MutationObserver((mutations) => { if (document.querySelector(selector)) { resolve(document.querySelector(selector)); observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true, }); }); } let video = undefined; waitForElm("video").then((elm) => { video = elm; document.onkeydown = function (e) { if (e.ctrlKey) { if (e.key == "ArrowRight") elm.currentTime = elm.currentTime + skipValue; if (e.key == "ArrowLeft") elm.currentTime = elm.currentTime - skipValue; } }; }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址