From 048dd41d65eb01d27d869cc9b32231f88f8a05ee Mon Sep 17 00:00:00 2001 From: green1052 <34261355+green1052@users.noreply.github.com> Date: Sun, 9 Nov 2025 00:55:20 +0900 Subject: [PATCH] use character classe --- sources/src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sources/src/index.ts b/sources/src/index.ts index 14e839d..b483059 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -5,9 +5,9 @@ declare const unsafeWindow: unsafeWindow const Win = typeof unsafeWindow !== 'undefined' ? unsafeWindow : window let AdblockDetectPositiveRegExps: RegExp[][] = [[ - /if *\( *typeof *window *\[ *[A-Za-z0-9]+\( *[0-9]+ *\) *\] *!== *[A-Za-z0-9]+\( *[0-9]+ *\) *\) *{/, - /const *[a-zA-Z0-9]+ *= *setTimeout *\( *\( *\) *=> *{/, - /typeof *[A-Za-z0-9]+ *!== *[A-Za-z0-9]+ *\( *[0-9a-f]+ *\) *\|\| *[A-Za-z0-9]+ *===? *void *0 *\|\| *[A-Za-z0-9]+ *===? *null *\|\| *[A-Za-z0-9]+ *===? *('|")+ *\)/ + /if *\( *typeof *window *\[ *\w+\( *\d+ *\) *\] *!== *\w+\( *\d+ *\) *\) *{/, + /const *\w+ *= *setTimeout *\( *\( *\) *=> *{/, + /typeof *\w+ *!== *\w+ *\( *[\da-f]+ *\) *\|\| *\w+ *===? *void *0 *\|\| *\w+ *===? *null *\|\| *\w+ *===? *('|")+ *\)/ ]] Win.Promise = new Proxy(Win.Promise, { @@ -17,4 +17,4 @@ Win.Promise = new Proxy(Win.Promise, { } return Reflect.construct(Target, Args) } -}) \ No newline at end of file +})