Skip to content

Commit

Permalink
update: bilibili to v1.12.3.3068
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Oct 30, 2023
1 parent f970e0d commit 360b599
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# 🌈 v1.12.1-4 / 2023-10-
# 🌈 v1.12.3-1 / 2023-10-

## 🐞 修复
- 启动:处理总有个不影响使用的报错 `require(...) is not a function`

## 🚀 功能
- bilibili: update to v1.12.3.3068
- 开发者控制台: 使用<kbd>F12</kbd>,而不是配置文件
- hook: 对 `Module` 进行hook,替换 `require`
- 外区番剧:新增HD扫码获取AccessToken,旧的获取方法已被官方禁用 (感谢 @cxw620 提供的帮助) #91
Expand Down
2 changes: 1 addition & 1 deletion conf/bilibili_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.1.2862
1.12.3.3068
16 changes: 8 additions & 8 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ cat "$root_dir/res/scripts/injectIndex.js" > "app/index.js"
notice "====app.js===="

notice "屏蔽检测"
grep -lr 'if(!dE' --exclude="app.asar" .
sed -i 's#if(!dE#if(false\&\&!dE#g' "app/main/app.js"
grep -lr 'if(!v5' --exclude="app.asar" .
sed -i 's#if(!v5#if(false\&\&!v5#g' "app/main/app.js"
# ==='win';if(!
grep -lr 'if(!Rq)' --exclude="app.asar" .
sed -i 's#if(!Rq)#if(false\&\&!Rq)#' "app/main/app.js"
grep -lr 'if(!Vp)' --exclude="app.asar" .
sed -i 's#if(!Vp)#if(false\&\&!Vp)#' "app/main/app.js"
# global['bootstrapApp']();
grep -lr 'if(dE)' --exclude="app.asar" .
sed -i 's#if(dE)#if(!dE)#' "app/main/app.js"
grep -lr 'if(v5)' --exclude="app.asar" .
sed -i 's#if(v5)#if(!v5)#' "app/main/app.js"
#grep -lr '};!fb' --exclude="app.asar" .
#sed -i 's#};!fb#};false\&\&!fb#' "app/main/app.js"

notice "路由"
grep -lr 'case"SettingsPage":n.push({name:"Settings"});return' --exclude="app.asar" .
sed -i 's#case"SettingsPage":n.push({name:"Settings"});return#case"SettingsPage":n.push({name:"Settings"});return;default:if(n)return n.push({name:y.page});return#' app/render/assets/biliapp.*.js
grep -lr 'case"SettingsPage":s.push({name:"Settings"});return' --exclude="app.asar" .
sed -i 's#case"SettingsPage":s.push({name:"Settings"});return#case"SettingsPage":s.push({name:"Settings"});return;default:if(s)return s.push({name:y.page});return#' app/render/assets/biliapp.*.js

notice "添加主页菜单" # ok
grep -lr "te'](\[{'label':'设置" --exclude="app.asar" .
Expand Down
2 changes: 1 addition & 1 deletion tools/js-decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ resultCode = resultCode.replace(
function ($0, $1, $2) {
i++;
// 查找异常点
if(i === 14236){
if(i === 5445){
// if(i === 3312){
// console.log("--->", $0, $1, $2)
// let result = eval('"' + $1 + '"')
Expand Down

0 comments on commit 360b599

Please sign in to comment.