diff --git a/package.json b/package.json index a837a87..62f548a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/namulink", - "version": "8.0.0", + "version": "8.0.1", "description": "", "type": "module", "scripts": { diff --git a/sources/banner.txt b/sources/banner.txt index 6ee299a..8014844 100644 --- a/sources/banner.txt +++ b/sources/banner.txt @@ -8,7 +8,7 @@ // @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js // @license MIT // -// @version 8.0.0 +// @version 8.0.1 // @author PiQuark6046 and contributors // // @match https://namu.wiki/* diff --git a/sources/src/index.ts b/sources/src/index.ts index 59ca47d..5a23eba 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -70,6 +70,11 @@ Win.Proxy = new Proxy(Win.Proxy, { if (typeof PLData === 'undefined' || PLData === null || typeof PLData !== 'object') { continue } + try { + if (JSON.stringify(Args[0]).match(/<[a-zA-Z]+ /).length > 20) { + PowerLinkDataIndex = -99 + } + } catch {} let PowerLinkDataIndexKey = [0, 0, 0, 0] const PowerLinkDataIndexConst = [3, 2, 2, 1] for (let [IKey, IValue] of Object.entries(PLData)) { @@ -81,6 +86,9 @@ Win.Proxy = new Proxy(Win.Proxy, { case 'object': PowerLinkDataIndexKey[2]++ case 'number': + if ((IValue as number) > 1000) { + PowerLinkDataIndexKey[3] = -99 + } PowerLinkDataIndexKey[3]++ } }