diff --git a/package.json b/package.json index 964c4c2..0f87540 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@list-kr/namulink", - "version": "10.2.0", + "version": "10.3.0", "description": "", "type": "module", "scripts": { diff --git a/sources/banner.txt b/sources/banner.txt index 8e473ce..50e33e1 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 10.2.0 +// @version 10.3.0 // @author PiQuark6046 and contributors // // @match https://namu.wiki/* diff --git a/sources/src/index.ts b/sources/src/index.ts index 91e4f49..e9a21a4 100644 --- a/sources/src/index.ts +++ b/sources/src/index.ts @@ -25,7 +25,9 @@ Win.Object.defineProperty = new Proxy(Win.Object.defineProperty, { setInterval(() => { Array.from(document.querySelectorAll('div[class*=" "] div[class]')).filter(Filtered => Filtered instanceof HTMLElement && - (Filtered.innerText.includes('파워링크') || Filtered.innerText === '' || Array.from(Filtered.querySelectorAll('img[src*="//i.namu.wiki/i/"]')).length > 2) && Number(getComputedStyle(Filtered).getPropertyValue('padding-top').replaceAll('px', '')) >= 8 && + (Filtered.innerText.includes('파워링크') || Filtered.innerText === '' + || Array.from(Filtered.querySelectorAll('img[src*="//i.namu.wiki/i/"]')).length > 2 + || Array.from(Filtered.querySelectorAll('span')).filter(Ele => getComputedStyle(Ele).getPropertyValue('background-image').startsWith('url(data:image/png;base64,'))) && Number(getComputedStyle(Filtered).getPropertyValue('padding-top').replaceAll('px', '')) >= 8 && Number(getComputedStyle(Filtered).getPropertyValue('min-height').replaceAll('px', '')) > 100 && Number(getComputedStyle(Filtered).getPropertyValue('height').replaceAll('px', '')) < 400 ).forEach(Target => Target.setAttribute('style', 'display: none !important;'))