您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Increases the playback speed when the + key on the numpad is pressed, and decreases when the - key is pressed
当前为
// ==UserScript== // @name Youtube Speed Control With + and - // @namespace YoutubeSpeedPlusMinus // @description Increases the playback speed when the + key on the numpad is pressed, and decreases when the - key is pressed // @include https://www.youtube.com/watch?v=* // @version 1.0.1 // @grant none // ==/UserScript== document.onkeydown = function(evt) { var keyboardEvent = document.createEvent("KeyboardEvent"); var initMethod = typeof keyboardEvent.initKeyboardEvent !== 'undefined' ? "initKeyboardEvent" : "initKeyEvent"; switch (evt.keyCode) { case 107: //console.log("speed up") keyboardEvent[initMethod]("keydown", true, true, window, false, false, true, false, 190, 0); document.dispatchEvent(keyboardEvent); break; case 109: //console.log("speed down") keyboardEvent[initMethod]("keydown", true, true, window, false, false, true, false, 188, 0); document.dispatchEvent(keyboardEvent); break; } };