Skip to content

Commit

Permalink
update: bilibili to v1.12.5.3101
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Nov 4, 2023
1 parent b186567 commit 8f5ce61
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# 🌈 v1.12.3-1 / 2023-10-
# 🌈 v1.12.3-1 / 2023-10-30

## 🐞 修复
- 启动:无法启动

## 🚀 功能
- bilibili: update to v1.12.5.3101

# 🌈 v1.12.3-1 / 2023-10-30

## 🐞 修复
- 启动:处理总有个不影响使用的报错 `require(...) is not a function`
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.3.3068
1.12.5.3101
2 changes: 1 addition & 1 deletion res/scripts/injectIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const pkgHack = {
data: [
true,
true,
false, // .biliapp
true, // .biliapp
true,
false,
true,
Expand Down
12 changes: 6 additions & 6 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ cat "$root_dir/res/scripts/injectIndex.js" > "app/index.js"
notice "====app.js===="

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

Expand Down
10 changes: 9 additions & 1 deletion tools/js-decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,22 @@ resultCode = resultCode.replace(
function ($0, $1, $2) {
i++;
// 查找异常点
if(i === 5445){
if(i === 17244){
// if(i === 3312){
// console.log("--->", $0, $1, $2)
// let result = eval('"' + $1 + '"')
// console.log("--->", result)
// }
return $0
}
if(i === 22551){
// if(i === 3312){
// console.log("--->", $0, $1, $2)
// let result = eval('"' + $1 + '"')
// console.log("--->", result)
// }
return $0
}

let result = eval('"' + $1 + '"')
if (result.includes('*')) {
Expand Down

0 comments on commit 8f5ce61

Please sign in to comment.