Skip to content

Commit

Permalink
bilibili: update to v1.2.3.809
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Jun 28, 2022
1 parent 88cf207 commit 51e3657
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion conf/bilibili_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.2.796
1.2.3.809
29 changes: 19 additions & 10 deletions res/scripts/injectIndex.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@

const {app} = require("electron")
const {
app
} = require("electron")
const pkgHack = {
idx: 0,
data: [true, true, true, false, false]
data: [
true,
true,
true,
false,
false,
true,
false // app.js isPackaged -> waring
]
}
Object.defineProperty(app, 'isPackaged', {
get() {
let ret = pkgHack.data[pkgHack.idx++]
if(ret === undefined) ret = true;
// console.log("get isPackaged", ret)
return ret;
},
get() {
let ret = pkgHack.data[pkgHack.idx++]
if (ret === undefined) ret = true;
// console.log("get isPackaged", ret)
return ret;
},

});
12 changes: 6 additions & 6 deletions tools/fix-other.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ mv "app/main/temp.js" "app/main/index.js"
notice "====app.js===="

notice "屏蔽检测"
grep -lr 'if(!Ue){' --exclude="app.asar" .
sed -i 's#if(!Ue){#if(false\&\&!Ue){#' app/main/app.js
grep -lr '}z2\[zD' --exclude="app.asar" .
sed -i 's#}z2\[zD#}false\&\&z2\[zD#' app/main/app.js
grep -lr 'if(!zX){' --exclude="app.asar" .
sed -i 's#if(!zX){#if(false\&\&!zX){#' app/main/app.js
grep -lr 'if(!fD){' --exclude="app.asar" .
sed -i 's#if(!fD){#if(false\&\&!fD){#' app/main/app.js
# grep -lr '}X5\[XY' --exclude="app.asar" .
# sed -i 's#}X5\[XY#}false\&\&X5\[XY#' app/main/app.js
grep -lr 'if(!Xz){' --exclude="app.asar" .
sed -i 's#if(!Xz){#if(false\&\&!Xz){#' app/main/app.js
# grep -lr ';}!c8' --exclude="app.asar" .
# sed -i 's#;}!c8#;}false\&\&!c8#' app/main/app.js

Expand Down

0 comments on commit 51e3657

Please sign in to comment.