Skip to content

Commit ba5a830

Browse files
committed
fix: add keyword
1 parent 81da5a6 commit ba5a830

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@list-kr/namulink",
3-
"version": "11.2.0",
3+
"version": "11.2.1",
44
"description": "",
55
"type": "module",
66
"scripts": {

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 11.2.0
11+
// @version 11.2.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
@@ -8,7 +8,7 @@ Win.Function.prototype.apply = new Proxy(Win.Function.prototype.apply, {
88
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
99
apply(Target: typeof Function.prototype.apply, ThisArg: Function, Args: Parameters<typeof Function.prototype.apply>) {
1010
if (typeof ThisArg === 'function' && /switch *\(.+, *new/.test(ThisArg.toString()) && /for *\( *; *; *\)/.test(ThisArg.toString()) &&
11-
['encodeURIComponent', 'namu.wiki/w/', 'x-namuwiki-key', 'X-Chika', 'x-ruby', 'X-You', 'Uint8Array'].filter(Index => ThisArg.toString().includes(Index)).length > 3) {
11+
['encodeURIComponent', 'namu.wiki/w/', 'x-namuwiki-key', 'X-Chika', 'setTimeout', 'x-ruby', 'X-You', 'Uint8Array', 'referrer', 'throw new Error'].filter(Index => ThisArg.toString().includes(Index)).length > 3) {
1212
return
1313
}
1414
return Reflect.apply(Target, ThisArg, Args)

0 commit comments

Comments
 (0)