File tree Expand file tree Collapse file tree 3 files changed +2
-14
lines changed
Expand file tree Collapse file tree 3 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @list-kr/namulink" ,
3- "version" : " 17.0 .0" ,
3+ "version" : " 17.1 .0" ,
44 "description" : " " ,
55 "type" : " module" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 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/*
Original file line number Diff line number Diff 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-
4231setInterval ( ( ) => {
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 ) => {
You can’t perform that action at this time.
0 commit comments