Skip to content

Commit

Permalink
feat: format json & watermaker match
Browse files Browse the repository at this point in the history
  • Loading branch information
WindRunnerMax committed Nov 13, 2024
1 parent eb9254f commit 42664a7
Show file tree
Hide file tree
Showing 8 changed files with 169 additions and 203 deletions.
47 changes: 20 additions & 27 deletions packages/copy-currency/meta.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
{
"name": {
"default": "🔥🔥🔥文本选中复制(通用)🔥🔥🔥",
"en": "Text Copy Universal",
"zh-CN": "🔥🔥🔥文本选中复制(通用)🔥🔥🔥"
},
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.1.2",
"description": {
"default": "文本选中复制通用版本,适用于大多数网站",
"en": "Text copy general version, suitable for most websites.",
"zh-CN": "文本选中复制通用版本,适用于大多数网站"
},
"author": "Czy",
"match": [
"http://*/*",
"https://*/*"
],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-end",
"grant": [
"GM_registerMenuCommand",
"GM_unregisterMenuCommand",
"GM_notification"
]
}
"name": {
"default": "🔥🔥🔥文本选中复制(通用)🔥🔥🔥",
"en": "Text Copy Universal",
"zh-CN": "🔥🔥🔥文本选中复制(通用)🔥🔥🔥"
},
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.1.2",
"description": {
"default": "文本选中复制通用版本,适用于大多数网站",
"en": "Text copy general version, suitable for most websites.",
"zh-CN": "文本选中复制通用版本,适用于大多数网站"
},
"author": "Czy",
"match": ["http://*/*", "https://*/*"],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-end",
"grant": ["GM_registerMenuCommand", "GM_unregisterMenuCommand", "GM_notification"]
}
217 changes: 107 additions & 110 deletions packages/copy/meta.json
Original file line number Diff line number Diff line change
@@ -1,112 +1,109 @@
{
"name": "🔥🔥🔥文本选中复制🔥🔥🔥",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "6.2.8",
"description": "解除网站不允许复制的限制,文本选中后点击复制按钮即可复制,主要用于 百度文库 道客巴巴 腾讯文档 豆丁网 无忧考网 学习啦 蓬勃范文 思否社区 力扣 知乎 语雀 等",
"author": "Czy",
"match": [
"*://wenku.baidu.com/view/*",
"*://wenku.baidu.com/share/*",
"*://wenku.baidu.com/link*",
"*://wenku.baidu.com/aggs/*",
"*://wenku.baidu.com/ndPureView/*",
"*://www.51test.net/show/*",
"*://www.xuexi.la/*",
"*://www.xuexila.com/*",
"*://www.cspengbo.com/*",
"*://*.doc88.com/*",
"*://segmentfault.com/*",
"*://wk.baidu.com/view/*",
"*://leetcode-cn.com/problems/*",
"*://leetcode.cn/problems/*",
"*://*.zhihu.com/*",
"*://z.30edu.com.cn/*",
"*://docs.qq.com/doc/*",
"*://docs.qq.com/sheet/*",
"*://docs.qq.com/slide/*",
"*://boke112.com/post/*",
"*://*.yuque.com/*",
"*://www.commandlinux.com/*",
"*://*.diyifanwen.com/*",
"*://*.mbalib.com/*",
"*://*.cnitpm.com/*",
"*://bbs.mihoyo.com/ys/*",
"*://*.ruiwen.com/*",
"*://www.uemeds.cn/*",
"*://www.oh100.com/*",
"*://www.aiyuke.com/news/*",
"*://www.fwsir.com/*",
"*://www.wenxm.cn/*",
"*://www.unjs.com/*",
"*://www.ahsrst.cn/*",
"*://*.yjbys.com/*",
"*://*.qidian.com/*",
"*://*.zongheng.com/*",
"*://*.17k.com/*",
"*://*.ciweimao.com/*",
"*://book.qq.com/*",
"*://*.360doc.com/content/*",
"*://*.850500.com/news/*",
"*://utaten.com/lyric/*",
"*://*.jianbiaoku.com/*",
"*://*.kt250.com/*",
"*://www.kejudati.com/*",
"*://*.xiaohongshu.com/discovery/*",
"*://*.baibeike.com/*",
"*://*.blog.csdn.net/*",
"*://*.bilibili.com/read/*",
"*://*.cnki.net/KXReader/*",
"*://*.cnrencai.com/*",
"*://*.kodiplayer.cn/*",
"*://tongxiehui.net/*",
"*://*.jianshu.com/p/*",
"*://*.linovelib.com/novel/*",
"*://*.wjx.cn/*",
"*://*.wjx.top/*",
"*://*.chazidian.com/*",
"*://*.juejin.cn/post/*",
"*://*.zgbk.com/ecph/*",
"*://*.wenmi.com/article/*",
"*://yuedu.baidu.com/*",
"*://www.inrrp.com.cn/*",
"*://fanyi.baidu.com/mtpe/*",
"*://www.shubaoc.com/*",
"*://blog.51cto.com/*",
"*://www.ximalaya.com/*",
"*://*.tianqi.com/*",
"*://*.xiexiebang.com/*",
"*://*.docin.com/*",
"*://*.ddwk8.cn/*",
"*://*.php.cn/*",
"*://cooco.net.cn/*",
"*://fanqienovel.com/*",
"*://*.mobiletrain.org/*",
"*://*.examcoo.com/*",
"*://*.rrdynb.com/*",
"*://*.fuwu7.com/*",
"*://*.xiangqiqipu.com/*",
"*://note.youdao.com/*",
"*://*.163.com/*",
"*://*.aipiaxi.com/*",
"*://wenku.csdn.net/*",
"*://www.kdocs.cn/*",
"*://www.xiaoyuzhoufm.com/*",
"*://*.mcmod.cn/*",
"*://*.zsxq.com/",
"*://*.volcengine.com/*",
"*://*.lyrical-nonsense.com/*",
"*://*.xueqiu.com/*",
"*://*.php.cn/*",
"*://*.51cto.com/*",
"*://*.educoder.net/*"
],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-start",
"grant": [
"unsafeWindow",
"GM_xmlhttpRequest"
],
"connect": "res3.doc88.com"
"name": "🔥🔥🔥文本选中复制🔥🔥🔥",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "6.2.8",
"description": "解除网站不允许复制的限制,文本选中后点击复制按钮即可复制,主要用于 百度文库 道客巴巴 腾讯文档 豆丁网 无忧考网 学习啦 蓬勃范文 思否社区 力扣 知乎 语雀 等",
"author": "Czy",
"match": [
"*://wenku.baidu.com/view/*",
"*://wenku.baidu.com/share/*",
"*://wenku.baidu.com/link*",
"*://wenku.baidu.com/aggs/*",
"*://wenku.baidu.com/ndPureView/*",
"*://www.51test.net/show/*",
"*://www.xuexi.la/*",
"*://www.xuexila.com/*",
"*://www.cspengbo.com/*",
"*://*.doc88.com/*",
"*://segmentfault.com/*",
"*://wk.baidu.com/view/*",
"*://leetcode-cn.com/problems/*",
"*://leetcode.cn/problems/*",
"*://*.zhihu.com/*",
"*://z.30edu.com.cn/*",
"*://docs.qq.com/doc/*",
"*://docs.qq.com/sheet/*",
"*://docs.qq.com/slide/*",
"*://boke112.com/post/*",
"*://*.yuque.com/*",
"*://www.commandlinux.com/*",
"*://*.diyifanwen.com/*",
"*://*.mbalib.com/*",
"*://*.cnitpm.com/*",
"*://bbs.mihoyo.com/ys/*",
"*://*.ruiwen.com/*",
"*://www.uemeds.cn/*",
"*://www.oh100.com/*",
"*://www.aiyuke.com/news/*",
"*://www.fwsir.com/*",
"*://www.wenxm.cn/*",
"*://www.unjs.com/*",
"*://www.ahsrst.cn/*",
"*://*.yjbys.com/*",
"*://*.qidian.com/*",
"*://*.zongheng.com/*",
"*://*.17k.com/*",
"*://*.ciweimao.com/*",
"*://book.qq.com/*",
"*://*.360doc.com/content/*",
"*://*.850500.com/news/*",
"*://utaten.com/lyric/*",
"*://*.jianbiaoku.com/*",
"*://*.kt250.com/*",
"*://www.kejudati.com/*",
"*://*.xiaohongshu.com/discovery/*",
"*://*.baibeike.com/*",
"*://*.blog.csdn.net/*",
"*://*.bilibili.com/read/*",
"*://*.cnki.net/KXReader/*",
"*://*.cnrencai.com/*",
"*://*.kodiplayer.cn/*",
"*://tongxiehui.net/*",
"*://*.jianshu.com/p/*",
"*://*.linovelib.com/novel/*",
"*://*.wjx.cn/*",
"*://*.wjx.top/*",
"*://*.chazidian.com/*",
"*://*.juejin.cn/post/*",
"*://*.zgbk.com/ecph/*",
"*://*.wenmi.com/article/*",
"*://yuedu.baidu.com/*",
"*://www.inrrp.com.cn/*",
"*://fanyi.baidu.com/mtpe/*",
"*://www.shubaoc.com/*",
"*://blog.51cto.com/*",
"*://www.ximalaya.com/*",
"*://*.tianqi.com/*",
"*://*.xiexiebang.com/*",
"*://*.docin.com/*",
"*://*.ddwk8.cn/*",
"*://*.php.cn/*",
"*://cooco.net.cn/*",
"*://fanqienovel.com/*",
"*://*.mobiletrain.org/*",
"*://*.examcoo.com/*",
"*://*.rrdynb.com/*",
"*://*.fuwu7.com/*",
"*://*.xiangqiqipu.com/*",
"*://note.youdao.com/*",
"*://*.163.com/*",
"*://*.aipiaxi.com/*",
"*://wenku.csdn.net/*",
"*://www.kdocs.cn/*",
"*://www.xiaoyuzhoufm.com/*",
"*://*.mcmod.cn/*",
"*://*.zsxq.com/",
"*://*.volcengine.com/*",
"*://*.lyrical-nonsense.com/*",
"*://*.xueqiu.com/*",
"*://*.php.cn/*",
"*://*.51cto.com/*",
"*://*.educoder.net/*"
],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-start",
"grant": ["unsafeWindow", "GM_xmlhttpRequest"],
"connect": "res3.doc88.com"
}
45 changes: 21 additions & 24 deletions packages/site-director/meta.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"name": "🔥🔥🔥跳转链接直达🔥🔥🔥",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.3.3",
"description": "跳转链接直达,去掉确定跳转链接页面,用于谷歌、知乎、CSDN、简书",
"author": "Czy",
"match": [
"*://*.google.com/*",
"*://*.google.com.cn/*",
"*://*.google.com.hk/*",
"*://link.zhihu.com/*",
"*://link.csdn.net/*",
"*://link.juejin.cn/*",
"*://www.jianshu.com/go-wild/*",
"*://mail.qq.com/cgi-bin/readtemplate/*"
],
"license": "MIT License",
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"grant": [
"unsafeWindow",
"GM_xmlhttpRequest"
],
"run-at": "document-start"
}
"name": "🔥🔥🔥跳转链接直达🔥🔥🔥",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.3.3",
"description": "跳转链接直达,去掉确定跳转链接页面,用于谷歌、知乎、CSDN、简书",
"author": "Czy",
"match": [
"*://*.google.com/*",
"*://*.google.com.cn/*",
"*://*.google.com.hk/*",
"*://link.zhihu.com/*",
"*://link.csdn.net/*",
"*://link.juejin.cn/*",
"*://www.jianshu.com/go-wild/*",
"*://mail.qq.com/cgi-bin/readtemplate/*"
],
"license": "MIT License",
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"grant": ["unsafeWindow", "GM_xmlhttpRequest"],
"run-at": "document-start"
}
26 changes: 11 additions & 15 deletions packages/water-mark/meta.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"name": "移除页面水印",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.0.1",
"description": "移除常见网页的水印",
"author": "Czy",
"match": [
"*://so.csdn.net/*"
],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-start",
"grant": [
"unsafeWindow"
]
"name": "移除页面水印",
"namespace": "https://github.com/WindrunnerMax/TKScript",
"version": "1.0.2",
"description": "移除常见网页的水印",
"author": "Czy",
"match": ["http://*/*", "https://*/*"],
"supportURL": "https://github.com/WindrunnerMax/TKScript/issues",
"license": "GPL License",
"installURL": "https://github.com/WindrunnerMax/TKScript",
"run-at": "document-start",
"grant": ["unsafeWindow"]
}
3 changes: 1 addition & 2 deletions packages/water-mark/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { common } from "./modules/common";
import { csdn } from "./modules/csdn";
import type { Website } from "./types/website";

const websites: Website[] = [csdn, common];
const websites: Website[] = [common];
const web = websites.find(item => item.regexp.test(location.href));
web && web.init();
6 changes: 6 additions & 0 deletions packages/water-mark/src/modules/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,19 @@ export const common: Website = {
};
const PRESET_CLASSES = [
"." + FALLBACK_CLASS,
`[id*="watermark"]`,
`[id*="WaterMark"]`,
`[id*="Watermark"]`,
`[class*="watermark"]`,
`[class*="WaterMark"]`,
`[class*="Watermark"]`,
].join(",");
injectCSSEarly(`${PRESET_CLASSES}{${OPACITY_PROPERTY}}`);
const PRESET_BACKGROUND = [
`[style*="pointer-events: none;"][style*="background: url"]`,
`[style*="pointer-events: none;"][style*="background-image: url"]`,
`[style*="pointer-events:none;"][style*="background:url"]`,
`[style*="pointer-events:none;"][style*="background-image:url"]`,
].join(",");
injectCSSEarly(`${PRESET_BACKGROUND}{${OPACITY_BACKGROUND_PROPERTY}}`);
},
Expand Down
21 changes: 0 additions & 21 deletions packages/water-mark/src/modules/csdn.ts

This file was deleted.

Loading

0 comments on commit 42664a7

Please sign in to comment.