Skip to content

Commit a51838e

Browse files
committed
Deploying to gh-pages from @ 997d7c2 🚀
1 parent bedc12f commit a51838e

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

meta/water-mark.meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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://*/*

water-mark.user.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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://*/*
@@ -42,6 +42,10 @@
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;

0 commit comments

Comments
 (0)