Created
October 7, 2024 12:57
-
-
Save Rhilip/e73a2176e51861a883f77020e9158419 to your computer and use it in GitHub Desktop.
厚大-真题卷讲解加速
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 厚大-真题卷讲解加速 | |
// @namespace rhilip.info | |
// @version 2024-09-09 | |
// @description try to take over the world! | |
// @author Rhilip | |
// @match https://online.houdask.com/video* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let bplayerComponent; | |
setInterval(function() { | |
if (typeof bplayerComponent === 'undefined') { | |
bplayerComponent = window?.app?.__vue__?.$children?.find(x => x.$children.find(y => y.bplayer))?.$children.find(y => y.bplayer) | |
} | |
if (bplayerComponent) { | |
const bplayer = bplayerComponent.bplayer; | |
if (bplayer.speed == 1) { | |
bplayer.setSpeed(2) | |
} | |
} | |
}, 1e3); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment