Skip to content

Commit

Permalink
fix: update innerText logic
Browse files Browse the repository at this point in the history
  • Loading branch information
piquark6046 committed Dec 26, 2024
1 parent ed85e6c commit 715cfae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@list-kr/namulink",
"version": "5.1.0",
"version": "5.1.1",
"description": "",
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sources/banner.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// @downloadURL https://cdn.jsdelivr.net/npm/@list-kr/namulink@latest/dist/NamuLink.user.js
// @license MIT
//
// @version 5.1.0
// @version 5.1.1
// @author PiQuark6046 and contributors
//
// @match https://namu.wiki/*
Expand Down
2 changes: 1 addition & 1 deletion sources/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Win = typeof unsafeWindow !== 'undefined' ? unsafeWindow : window
let HideLeftover = () => {
setInterval(() => {
Array.from(document.querySelectorAll('div[class*=" "] div[class]')).filter((TargetEle: HTMLElement) => {
return TargetEle.innerText === '' && Number(getComputedStyle(TargetEle).getPropertyValue('margin-top').replace('px', '')) > 15
return (TargetEle.innerText === '' || TargetEle.innerText.includes('파워링크')) && Number(getComputedStyle(TargetEle).getPropertyValue('margin-top').replace('px', '')) > 15
}).forEach((TargetEle: HTMLElement) => {
TargetEle.setAttribute('style', 'visibility: hidden !important; width: 1px !important; height: 1px !important;')
})
Expand Down

0 comments on commit 715cfae

Please sign in to comment.