您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一个学堂云视频播放加速脚本
// ==UserScript== // @name xuetangx video speedup // @name:zh 学堂云视频加速 // @name:zh-CN 学堂云视频加速 // @namespace https://gf.qytechs.cn/zh-CN/scripts/377956-xuetangx-video-speedup/ // @homepage http://blog.shlll.top/ // @version 0.0.2 // @description A xuetangx video speedup script. // @description:zh 一个学堂云视频播放加速脚本 // @description:zh-CN 一个学堂云视频播放加速脚本 // @author SHLLL // @include https://*.xuetangx.com/lms* // @grant unsafeWindow // @run-at document-end // ==/UserScript== (function() { 'use strict'; function speedUp() { let ele = document.getElementsByClassName('xt_video_player_speed')[0].getElementsByClassName('xt_video_player_common_list')[0].childNodes[0]; ele.setAttribute('data-speed', 64); ele.innerText = '64.0x'; //let newEle = document.createElement('li'); //newEle.setAttribute('data-speed', 64); //newEle.innerText = '64.0x'; //ele.parentNode.insertBefore(newEle, ele); if(window.Notification && Notification.permission !== "denied") { Notification.requestPermission(function(status) { var n = new Notification('学堂云加速', { body:'在播放器中选择播放速度吧!' }); }); } } unsafeWindow.onload = ()=>{ console.log('学堂云视频加速器'); let url = unsafeWindow.location.href; if(url.indexOf('video') !== -1) { setTimeout(speedUp, 100); } unsafeWindow.onhashchange = (e)=>{ console.log('检测到url更改'); let curUrl = e.newURL; if(url.indexOf('video') !== -1) { setTimeout(speedUp, 100); } } } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址