Skip to content

Commit 21c20b0

Browse files
committed
chore: return undefined value if setTimeout trap is activated
1 parent 8989bde commit 21c20b0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@list-kr/namulink",
3-
"version": "17.4.0",
3+
"version": "17.4.1",
44
"description": "",
55
"type": "module",
66
"scripts": {
@@ -43,6 +43,6 @@
4343
"esbuild": "^0.25.9",
4444
"eslint": "^9.35.0",
4545
"typescript": "^5.9.2",
46-
"typescript-eslint": "^8.42.0"
46+
"typescript-eslint": "^8.43.0"
4747
}
4848
}

sources/banner.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js
99
// @license MIT
1010
//
11-
// @version 17.4.0
11+
// @version 17.4.1
1212
// @author PiQuark6046 and contributors
1313
//
1414
// @match https://namu.wiki/*

sources/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Win.setTimeout = new Proxy(Win.setTimeout, {
7979
let StringifiedFunc = Args[0].toString()
8080
if (PowerLinkGenerationSkeletionPositiveRegExps.filter(PowerLinkGenerationSkeletionPositiveRegExp => PowerLinkGenerationSkeletionPositiveRegExp.filter(Index => Index.test(StringifiedFunc)).length >= 1).length === 1) {
8181
console.debug('[NamuLink] setTimeout:', Args[0])
82-
return Reflect.apply(Target, ThisArg, [() => {}, Args[1]])
82+
return
8383
}
8484

8585
return Reflect.apply(Target, ThisArg, Args)

0 commit comments

Comments
 (0)