您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
加速百度网盘在线播放视频的速度
// ==UserScript== // @name 百度网盘视频加速播放 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 加速百度网盘在线播放视频的速度 // @author HollowME // @match https://pan.baidu.com/play/* // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... var videoToolbar = document.getElementById('video-toolbar'); var btnSpeedUp = document.createElement('a'); btnSpeedUp.className = 'g-button'; btnSpeedUp.setAttribute('title','加速'); btnSpeedUp.setAttribute('style','height:32px; margin:0 5px; padding:0 0 0 10px; cursor:pointer;'); var iconSpeedUp = document.createElement('em'); iconSpeedUp.className = 'icon icon-speed'; iconSpeedUp.title = '加速'; var spanTxt = document.createElement('span'); spanTxt.className = 'text'; spanTxt.innerText = '加速'; var gBtnRight = document.createElement('span'); gBtnRight.className = 'g-button-right'; gBtnRight.append(iconSpeedUp,spanTxt); gBtnRight.setAttribute('style','padding:0 10px 0 0'); var rateNum = document.createElement('input'); rateNum.type = 'number'; rateNum.id = 'ratenum'; rateNum.setAttribute('step', '0.2'); rateNum.setAttribute('style','width:44px; height:32px; padding:0px 0px 0px 12px; margin:0px 0px 0px 3px; border:1px solid #c3eaff'); rateNum.value = '1'; rateNum.className = 'g-button'; btnSpeedUp.onclick = function setPlayerRate() { var player = videojs.getPlayers("video-player"); player.html5player.tech_.setPlaybackRate(document.getElementById('ratenum').value); } videoToolbar.childNodes[3].append(btnSpeedUp,rateNum); btnSpeedUp.appendChild(gBtnRight); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址