File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export function RunNamuLinkUserscript(BrowserWindow: typeof window, UserscriptNa
102102 let Count = [ ...El . querySelectorAll ( '*' ) ] . filter ( Child => ( Child . getBoundingClientRect ( ) . bottom - Child . getBoundingClientRect ( ) . top > 25 && Child . getBoundingClientRect ( ) . right - Child . getBoundingClientRect ( ) . left > 25 && ( Child instanceof SVGPathElement && Child . getAttribute ( 'd' ) !== null ) || ( Child instanceof HTMLImageElement && Child . src . includes ( '//i.namu.wiki/i/' ) ) ) ) . length
103103 return 1 <= Count && Count <= 6
104104 } )
105- TargetedAttrsDOMs = TargetedAttrsDOMs . filter ( El => [ ...El . querySelectorAll ( '*' ) ] . some ( Child => Child instanceof HTMLElement && getComputedStyle ( Child , '::after' ) . getPropertyValue ( 'content' ) . includes ( ':' ) && Child . getBoundingClientRect ( ) . right - Child . getBoundingClientRect ( ) . left > 100 ) === false )
105+ TargetedAttrsDOMs = TargetedAttrsDOMs . filter ( El => [ ...El . querySelectorAll ( '*' ) ] . some ( Child => Child instanceof HTMLElement && getComputedStyle ( Child , '::after' ) . getPropertyValue ( 'content' ) . includes ( ':' ) && Child . getBoundingClientRect ( ) . right - Child . getBoundingClientRect ( ) . left > 20 ) === false )
106106 console . debug ( `[${ UserscriptName } ]` , TargetedAttrsDOMs )
107107 TargetedAttrsDOMs . forEach ( El => {
108108 setInterval ( ( ) => {
You can’t perform that action at this time.
0 commit comments