Skip to content

Instantly share code, notes, and snippets.

@Rhilip
Created October 7, 2024 12:57
Show Gist options
  • Save Rhilip/e73a2176e51861a883f77020e9158419 to your computer and use it in GitHub Desktop.
Save Rhilip/e73a2176e51861a883f77020e9158419 to your computer and use it in GitHub Desktop.
厚大-真题卷讲解加速
// ==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