您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds an input to change the playback speed of an opened MP4 Video. The URL has to end with '.mp4'.
// ==UserScript== // @name MP4 Video Playback Speed Input // @namespace Violentmonkey Scripts // @license MIT // @match *://*/*.mp4 // @grant none // @version 1.0 // @author Alexander Dobra // @description Adds an input to change the playback speed of an opened MP4 Video. The URL has to end with '.mp4'. // ==/UserScript== let video = document.querySelector('video'); let input = document.createElement('input'); input.type = 'number'; input.step = '0.25'; input.value = video.playbackRate; input.style.position = 'fixed'; input.style.top = '10px'; input.style.right = '10px'; input.style.zIndex = 1000; input.oninput = () => video.playbackRate = parseFloat(input.value); document.body.appendChild(input);