Greasy Fork is available in English.
I am not going to take over the world...
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/376248/658964/%E2%86%91%E2%86%92%E2%86%93%E2%86%90ABAB.js
// ==UserScript==
// @name ↑→↓←ABAB
// @namespace http://tampermonkey.net/
// @version 0.1
// @description I am not going to take over the world...
// @author You
// @match https://bilibili.com/video/*
// @match https://bilibili.com/bangumi/*
// @grant none
// ==/UserScript==
(function() {
!(function bootScript() {
!!document.querySelector('.video-state-pause svg')? getBootOption().then(hookData) : requestAnimationFrame(bootScript)
})()
function getBootOption() {
return new Promise(function(resolve, reject) {
let hash = {}
let params = GrayManager.playerParams.split('&')
params.map(p=>hash[p.split('=')[0]] = p.split('=')[1])
window.BOOT_OPTION = hash
resolve()
})
}
function hookData() {
return new Promise(function(resolve, reject) {
!eval(`var Ga = ${Ga.toString().replace('$.extend(this,{', '$.extend(this,{f,')}`) && Ga()
player = new bilibiliPlayer(BOOT_OPTION)
window.HOOKED_DATA = player.f
})
}
})();