File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66// @description :en Remove watermarks from common web pages
77// @description :zh 移除常见网页的水印
88// @namespace https://github.com/WindrunnerMax/TKScript
9- // @version 1.0.6
9+ // @version 1.0.7
1010// @author Czy
1111// @match http://*/*
1212// @match https://*/*
Original file line number Diff line number Diff line change 66// @description :en Remove watermarks from common web pages
77// @description :zh 移除常见网页的水印
88// @namespace https://github.com/WindrunnerMax/TKScript
9- // @version 1.0.6
9+ // @version 1.0.7
1010// @author Czy
1111// @match http://*/*
1212// @match https://*/*
4242 if ( ! node . hasAttribute ( "style" ) || node . style . pointerEvents !== "none" ) {
4343 return false ;
4444 }
45+ if ( node instanceof HTMLImageElement && node . src && node . src . startsWith ( "data:" ) ) {
46+ ! node . classList . contains ( FALLBACK_CLASS ) && node . classList . add ( FALLBACK_CLASS ) ;
47+ return true ;
48+ }
4549 if ( node . style . background . startsWith ( "url" ) || node . style . backgroundImage . startsWith ( "url" ) ) {
4650 ! node . classList . contains ( FALLBACK_CLASS ) && node . classList . add ( FALLBACK_CLASS ) ;
4751 return true ;
You can’t perform that action at this time.
0 commit comments