File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 55 "zh" : " 🔥🔥🔥移除页面水印🔥🔥🔥"
66 },
77 "namespace" : " https://github.com/WindrunnerMax/TKScript" ,
8- "version" : " 1.0.6 " ,
8+ "version" : " 1.0.7 " ,
99 "description" : {
1010 "default" : " 移除常见网页的水印" ,
1111 "en" : " Remove watermarks from common web pages" ,
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ export const inspectWaterMarkDOM = (node: Node) => {
1010 if ( ! node . hasAttribute ( "style" ) || node . style . pointerEvents !== "none" ) {
1111 return false ;
1212 }
13+ if ( node instanceof HTMLImageElement && node . src && node . src . startsWith ( "data:" ) ) {
14+ ! node . classList . contains ( FALLBACK_CLASS ) && node . classList . add ( FALLBACK_CLASS ) ;
15+ return true ;
16+ }
1317 if ( node . style . background . startsWith ( "url" ) || node . style . backgroundImage . startsWith ( "url" ) ) {
1418 ! node . classList . contains ( FALLBACK_CLASS ) && node . classList . add ( FALLBACK_CLASS ) ;
1519 return true ;
You can’t perform that action at this time.
0 commit comments