Greasy Fork is available in English.

libBilibiliToken

哔哩哔哩cookie获取token

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/400945/1055319/libBilibiliToken.js

Autor
lzgfzr
Verzija
1.0.0
Napravljeno
15/04/2020
Ažurirano
28/05/2022
Licenca
MIT

由B站cookie获取token
因为Tampermonkey的限制或者bug, 无法独立设置cookie, 所以不支持多用户
使用之前请确认已经登录
使用方法 await new BilibiliToken().getToken()
更多高级用法请自行开发