NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name 河南专技开启倍速播放,6倍速 // @namespace http://dltool.dong11.fun/ // @version 0.0.1 // @description 河南专技开启倍速播放,6倍速 // @author DL // @match *://*/* // @grant none // @license MIT // ==/UserScript== var bjyPlayer = null var that = this function setAA() { let span = document.getElementsByClassName('bplayer-speed-control')[0] let inSpan = document.createElement('span') inSpan.innerHTML = "倍速" inSpan.style = "{font-size: 12px;color: #fff;}" span.appendChild(inSpan) let speedUl = span.getElementsByClassName('bplayer-option-list')[0] let li = document.createElement('li') li.innerHTML = "6倍速" li.onclick = function () { if (bjyPlayer) { bjyPlayer.video.setPlaybackRate(6) } else { bjyPlayer = baiJiaYunPlayer bjyPlayer.video.setPlaybackRate(6) } } li.className = "bplayer-option-item speed" speedUl.appendChild(li) } setTimeout(function () { setAA() setInterval(function () { if (baiJiaYunPlayer&&baiJiaYunPlayer.video) { if (bjyPlayer && bjyPlayer.video) { bjyPlayer.video.setPlaybackRate(6) } else { bjyPlayer = baiJiaYunPlayer bjyPlayer.video.setPlaybackRate(6) } } }, 3000); }, 5000) setTimeout(function () { // baiJiaYunPlayer.video.play() }, 1000) //==OpenUserJS== //@author DL //==/OpenUserJS==