您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
I am not going to take over the world...
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/scripts/376248/659909/%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() { !!$('.video-state-pause svg')[0]? getBootOption().then(hookData) : requestAnimationFrame(bootScript) } 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() { let cheatSheet = [ {a: '$.extend(this,{', b: '$.extend(this,{f,'}, {a: '{Xd:24,time:2E3,Ie:b,background:"#000",hi:.7,Gh:!0,nk:400,mk:300,quality:80}', b: `{Xd:24,time:2E3,Ie:b,background:"#000",hi:.7,Gh:!0,nk:${player.getWidth()},mk:${player.getHeight()},quality:100}`} ] let GaRaw = Ga.toString() cheatSheet.map(ct => GaRaw = GaRaw.replace(ct.a, ct.b)) !eval(`var Ga = ${GaRaw}`) && Ga() player = new bilibiliPlayer(window.BOOT_OPTION) window.HOOKED_DATA = player.f } })();