Skip to content

Commit 238c880

Browse files
committed
fix: User page and table page goes blank
#198
1 parent 6ef253c commit 238c880

File tree

3 files changed

+2
-14
lines changed

3 files changed

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

sources/src/index.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,8 @@ Win.EventTarget.prototype.addEventListener = new Proxy(Win.EventTarget.prototype
2828
}
2929
})
3030

31-
let HidePowerLinkLeftover = () => {
32-
Array.from(document.querySelectorAll('div[class*=" "] div[class]:not(:has(svg))')).filter(Filtered => Filtered instanceof HTMLElement &&
33-
(Filtered.innerText.includes('파워링크') || Filtered.innerText.replaceAll(/(\n|\t)/g, '') === ''
34-
|| Array.from(Filtered.querySelectorAll('img[src*="//i.namu.wiki/i/"]')).length > 2
35-
|| Array.from(Filtered.querySelectorAll('span')).filter(Ele => getComputedStyle(Ele).getPropertyValue('background-image').startsWith('url(data:image/png;base64,'))) &&
36-
Number(getComputedStyle(Filtered).getPropertyValue('height').replaceAll('px', '')) < 400 &&
37-
Array.from(Filtered.querySelectorAll('*')).filter(Child => getComputedStyle(Child).getPropertyValue('animation-iteration-count') === 'infinite').length >= 6
38-
).forEach(Target => Target.remove())
39-
}
40-
41-
4231
setInterval(() => {
4332
if (location.href.startsWith('https://namu.wiki/w/')) {
44-
HidePowerLinkLeftover()
4533
let AdContainers = Array.from(document.querySelectorAll('div[class*=" "] div[class]')).filter(AdContainer => AdContainer instanceof HTMLElement)
4634

4735
AdContainers = AdContainers.filter((AdContainer) => {

0 commit comments

Comments
 (0)