Skip to content

Commit 8467cdb

Browse files
committed
fix: escaped PowerLink skeletion generation
The generation is triggerd after scrolling down the document or await a sec on a mobile device.
1 parent fee5e73 commit 8467cdb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-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": "17.3.0",
3+
"version": "17.4.0",
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 17.3.0
11+
// @version 17.4.0
1212
// @author PiQuark6046 and contributors
1313
//
1414
// @match https://namu.wiki/*

sources/src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ Win.Function.prototype.bind = new Proxy(Win.Function.prototype.bind, {
6767
})
6868

6969
let PowerLinkGenerationSkeletionPositiveRegExps: RegExp[][] = [[
70-
/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9]+ *\) *\]\(\); *}/
70+
/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/,
71+
/\( *\) *=> *{ *var *_0x[0-9a-z]+ *= *a0_0x[0-9a-f]+ *; *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\]\(\); *}/
72+
], [
73+
/\( *\) *=> *{ *var _0x[a-z0-9]+ *= *_0x[a-z0-9]+ *; *if *\( *this\[ *_0x[a-z0-9]+ *\( *0x[0-9a-f]+ *\) *\] *\) *return *clearTimeout/,
74+
/\( *0x[0-9a-f]+ *\) *\] *\) *, *void *\( *this\[ *_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *= *void *\([x0-9a-f*+-]+ *\) *\) *; *this\[_0x[a-z0-9]+\( *0x[0-9a-f]+ *\) *\] *\(\) *;/
7175
]]
7276

7377
Win.setTimeout = new Proxy(Win.setTimeout, {

0 commit comments

Comments
 (0)