Skip to content

Commit 72090b5

Browse files
committed
[BLCC] #131 修复V8.5解除限制脚本获取番剧信息失败
1 parent cced30f commit 72090b5

File tree

4 files changed

+13
-5
lines changed

4 files changed

+13
-5
lines changed

bilibiliCCHelper/3.0+.png

104 KB
Loading

bilibiliCCHelper/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ javascript:(function(){document.head.appendChild(document.createElement('script'
4040
-------------------------
4141
## 功能预览
4242

43-
![新版](https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBclUzIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--f55df6c370ac2682667683c652078cb9725597b6/newPlayer.jpg)
43+
![新版](https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTM3Mjc5LCJwdXIiOiJibG9iX2lkIn19--911664a8598398e40c75807040f81e903891bca7/3.0+.png?locale=zh-CN)
4444

45-
![旧版](https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcmczIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--a8c11789daf6c01e91b13d888d161da0cee2abaf/oldPlayer.jpg)
45+
![旧版](https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTQyNjEsInB1ciI6ImJsb2JfaWQifX0=--996ba58e226c87c6c24ccc05b3f6e576d028969a/newPlayer.jpg?locale=zh-CN)
4646

47-
![本地](https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcmszIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--5d0e5f86db55f13e49213bdadbaf039abfef6855/local.jpg)
47+
![下载](https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTM3MjgwLCJwdXIiOiJibG9iX2lkIn19--37654a879a4dbbe8499156b3cd5f9912354f28d4/download.png?locale=zh-CN)
4848

49-
![下载](https://greasyfork.org/rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBcmMzIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--0ca392a944dbbb03c264fbb4e5da71e8473c522e/download.jpg)
49+
![本地](https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTQyNjUsInB1ciI6ImJsb2JfaWQifX0=--e8a96c9ac72eb08cdb87a315ee1486d87ca27b43/local.jpg?locale=zh-CN)
5050

5151
-------------------------
5252
## 兼容性

bilibiliCCHelper/bilibiliCCHelper.user.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Bilibili CC字幕工具
33
// @namespace indefined
4-
// @version 0.5.41
4+
// @version 0.5.42
55
// @description 可下载B站的CC字幕,旧版B站播放器可启用CC字幕
66
// @author indefined
77
// @supportURL https://github.com/indefined/UserScripts/issues
@@ -1136,6 +1136,14 @@
11361136
this.bvid = ep.bvid;
11371137
return this.cid;
11381138
}
1139+
ep = this.window.__INITIAL_STATE__?.epInfo;
1140+
if (ep){
1141+
this.epid = ep.id;
1142+
this.cid = ep.cid;
1143+
this.aid = ep.aid;
1144+
this.bvid = ep.bvid;
1145+
return this.cid;
1146+
}
11391147
},
11401148
async setupData(){
11411149
if(this.subtitle && (this.pcid == this.getEpInfo())) return this.subtitle;

bilibiliCCHelper/download.jpg

-74.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)