Skip to content

Commit

Permalink
fix: firefox detection issue at meeco.kr
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Sep 27, 2024
1 parent 1f41b5f commit ac1382c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@list-kr/microshield",
"version": "4.11.4",
"version": "4.12.0",
"description": "",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sources/banner-ios-blocker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield-ios-blocker.user.js
// @license Apache-2.0
//
// @version 4.11.4
// @version 4.12.0
// @author PiQuark6046 and contributors
//
// @match *://ygosu.com/*
Expand Down
2 changes: 1 addition & 1 deletion sources/banner-ios-recovery.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield-ios-recovery.user.js
// @license Apache-2.0
//
// @version 4.11.4
// @version 4.12.0
// @author PiQuark6046 and contributors
//
// @match *://ygosu.com/*
Expand Down
2 changes: 1 addition & 1 deletion sources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/microshield@latest/dist/microShield.user.js
// @license Apache-2.0
//
// @version 4.11.4
// @version 4.12.0
// @author PiQuark6046 and contributors
//
// @match *://ygosu.com/*
Expand Down
3 changes: 3 additions & 0 deletions sources/src/utils/secret.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export const ProtectFunction = <F extends Fomulate>(F: F, Options: ProtectedFunc
if (typeof Options.ReturnAs !== 'undefined' &&
MatchSpecificSeq(ErrorStackParser.parse(ErrorInstance), [/[A-Za-z]{1,3}/, undefined, /[A-Za-z]{1,3}/, /Generator\./, /Generator\./])) {
ReturnAs = Options.ReturnAs
} else if (typeof Options.ReturnAs !== 'undefined' &&
MatchSpecificSeq(ErrorStackParser.parse(ErrorInstance), [/[A-Za-z]{1,3}/, /\/</, /[A-Za-z]{1,3}/, /\/</, /\/</])) {
ReturnAs = Options.ReturnAs
} else {
ReturnAs = 'Banned'
}
Expand Down

0 comments on commit ac1382c

Please sign in to comment.