From 1b1478095838dbc444d950cbfc21f7edb1d41945 Mon Sep 17 00:00:00 2001 From: piquark6046 Date: Tue, 24 Sep 2024 06:16:37 +0000 Subject: [PATCH] fix: location.reload can not be reconfigured --- package.json | 2 +- sources/banner-ios-blocker.txt | 2 +- sources/banner-ios-recovery.txt | 2 +- sources/banner.txt | 2 +- sources/src/index-ios-blocker.ts | 1 - sources/src/index.ts | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index ab77266..c63a8eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/microshield", - "version": "4.11.1", + "version": "4.11.2", "description": "", "type": "module", "scripts": { diff --git a/sources/banner-ios-blocker.txt b/sources/banner-ios-blocker.txt index cea65d8..85116c9 100644 --- a/sources/banner-ios-blocker.txt +++ b/sources/banner-ios-blocker.txt @@ -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.1 +// @version 4.11.2 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/banner-ios-recovery.txt b/sources/banner-ios-recovery.txt index ef68b5f..0cf80d4 100644 --- a/sources/banner-ios-recovery.txt +++ b/sources/banner-ios-recovery.txt @@ -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.1 +// @version 4.11.2 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/banner.txt b/sources/banner.txt index 5fc75f4..cef82a1 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -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.1 +// @version 4.11.2 // @author PiQuark6046 and contributors // // @match *://ygosu.com/* diff --git a/sources/src/index-ios-blocker.ts b/sources/src/index-ios-blocker.ts index 98f4569..39db660 100644 --- a/sources/src/index-ios-blocker.ts +++ b/sources/src/index-ios-blocker.ts @@ -40,7 +40,6 @@ const Hook = () => { ProtectFunctionDescriptors(Win, 'alert', {CheckArguments: true}) ProtectFunctionDescriptors(Win, 'confirm', {CheckArguments: true, ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win, 'atob', {CheckOutputs: true, ReturnAs: 'error-report.com'}) - ProtectFunctionDescriptors(Win.location, 'reload') ProtectFunctionDescriptors(Win, 'decodeURI', {ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win, 'decodeURIComponent', {ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win.Promise.prototype, 'catch') diff --git a/sources/src/index.ts b/sources/src/index.ts index b0765ad..ff3ff7c 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -41,7 +41,6 @@ const Hook = () => { ProtectFunctionDescriptors(Win, 'alert', {CheckArguments: true}) ProtectFunctionDescriptors(Win, 'confirm', {CheckArguments: true, ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win, 'atob', {CheckOutputs: true, ReturnAs: 'error-report.com'}) - ProtectFunctionDescriptors(Win.location, 'reload') ProtectFunctionDescriptors(Win, 'decodeURI', {ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win, 'decodeURIComponent', {ReturnAs: 'Undefined'}) ProtectFunctionDescriptors(Win.Promise.prototype, 'catch')