Skip to content

Commit 1b47bd3

Browse files
committed
Deploying to gh-pages from @ 9ab59bf 🚀
1 parent 5a3f6bb commit 1b47bd3

2 files changed

Lines changed: 7 additions & 9 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.4
9+
// @version 1.0.5
1010
// @author Czy
1111
// @match http://*/*
1212
// @match https://*/*

‎water-mark.user.js‎

Lines changed: 6 additions & 8 deletions
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.4
9+
// @version 1.0.5
1010
// @author Czy
1111
// @match http://*/*
1212
// @match https://*/*
@@ -28,7 +28,7 @@
2828
const OPACITY_BACKGROUND_PROPERTY = [
2929
"background: transparent !important;",
3030
"background-color: transparent !important;",
31-
"background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)) !important;"
31+
"background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)) !important;"
3232
].join("");
3333

3434
const inspectWaterMarkDOM = (node) => {
@@ -108,17 +108,15 @@
108108
super(getMutationCallback(callback));
109109
}
110110
};
111-
const PRESET_CLASSES = [
112-
"." + FALLBACK_CLASS,
111+
const PRESET_CLASSES = [`.${FALLBACK_CLASS}`].join(",");
112+
injectCSSEarly(`${PRESET_CLASSES}{${OPACITY_PROPERTY}}`);
113+
const PRESET_BACKGROUND = [
113114
`div[id*="watermark"]`,
114115
`div[id*="WaterMark"]`,
115116
`div[id*="Watermark"]`,
116117
`div[class*="watermark"]`,
117118
`div[class*="WaterMark"]`,
118-
`div[class*="Watermark"]`
119-
].join(",");
120-
injectCSSEarly(`${PRESET_CLASSES}{${OPACITY_PROPERTY}}`);
121-
const PRESET_BACKGROUND = [
119+
`div[class*="Watermark"]`,
122120
`div[style*="pointer-events"][style*="background: url"]`,
123121
`div[style*="pointer-events"][style*="background-image: url"]`,
124122
`div[style*="pointer-events"][style*="background:url"]`,

0 commit comments

Comments
 (0)