您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds more speed options to the edX video player
// ==UserScript== // @name edX More Video Speeds // @namespace http://tampermonkey.net/ // @version 0.11 // @description Adds more speed options to the edX video player // @author Lex // @match https://courses.edx.org/courses/* // @grant none // ==/UserScript== (function() { 'use strict'; var RATE_OPTIONS = ["1.75", "2.0", "2.2", "2.4", "2.6", "2.8", "3.0", "3.2"]; // Add the speeds to the menu if (document.querySelector(".video-speeds") !== null) { RATE_OPTIONS.forEach(function(speed) { let el = document.querySelector(".video-speeds.menu li").cloneNode(true); el.setAttribute("data-speed", speed); el.removeAttribute("class"); el.childNodes[0].innerText = speed + "x"; document.querySelector(".video-speeds.menu").prepend(el); }); } })();