File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed
Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @list-kr/namulink" ,
3- "version" : " 10.3 .0" ,
3+ "version" : " 10.4 .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 10.3 .0
11+ // @version 10.4 .0
1212// @author PiQuark6046 and contributors
1313//
1414// @match https://namu.wiki/*
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ setInterval(() => {
3131 Number ( getComputedStyle ( Filtered ) . getPropertyValue ( 'min-height' ) . replaceAll ( 'px' , '' ) ) > 100 &&
3232 Number ( getComputedStyle ( Filtered ) . getPropertyValue ( 'height' ) . replaceAll ( 'px' , '' ) ) < 400
3333 ) . forEach ( Target => Target . setAttribute ( 'style' , 'display: none !important;' ) )
34- Array . from ( document . querySelectorAll ( 'div[class*=" "] div[class][style="display: none !important;"]' ) ) . filter ( Filtered => Filtered instanceof HTMLElement &&
35- Number ( getComputedStyle ( Filtered . parentElement ) . getPropertyValue ( 'min-height' ) . replaceAll ( 'px' , '' ) ) > 100 &&
36- Number ( getComputedStyle ( Filtered . parentElement ) . getPropertyValue ( 'height' ) . replaceAll ( 'px' , '' ) ) < 400
37- ) . forEach ( Target => Target . parentElement . parentElement . remove ( ) )
34+ Array . from ( document . querySelectorAll ( 'div[class*=" "] div[class*=" "]' ) ) . filter ( Filtered => Filtered instanceof HTMLElement &&
35+ Number ( getComputedStyle ( Filtered ) . getPropertyValue ( 'min-height' ) . replaceAll ( 'px' , '' ) ) > 100 &&
36+ Number ( getComputedStyle ( Filtered ) . getPropertyValue ( 'height' ) . replaceAll ( 'px' , '' ) ) < 400 &&
37+ Array . from ( Filtered . querySelectorAll ( '*[style="display: none !important;"]' ) ) . length > 0
38+ ) . forEach ( Target => Target . remove ( ) )
3839} , 2500 )
You can’t perform that action at this time.
0 commit comments