-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathTampermonkeyConfig.js
35 lines (32 loc) · 1.25 KB
/
TampermonkeyConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import fs from "fs"
const packageInfo = JSON.parse(fs.readFileSync("./package.json", "utf-8").toString())
export const UserScriptContent = fs.readFileSync("./dist/bundle.min.js", "utf-8").toString().trim()
//.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/gm, "")会误伤base64
export const UserScript = {
"name": "知乎备份剪藏",
"namespace": "qtqz",
"source": "https://github.com/qtqz/zhihu-backup-collect",
"version": packageInfo.version,
"description": "将你喜欢的知乎回答/文章/想法保存为 markdown / zip / png",
"author": packageInfo.author,
"match": [
"https:\/\/www.zhihu.com/follow",
"https:\/\/www.zhihu.com/pin/*",
"https:\/\/www.zhihu.com/people/*",
"https:\/\/www.zhihu.com/org/*",
"https:\/\/www.zhihu.com/question/*",
"https:\/\/www.zhihu.com/answer/*",
"https:\/\/www.zhihu.com/collection/*",
"https:\/\/zhuanlan.zhihu.com/p/*",
"https:\/\/www.zhihu.com/search*content*",
"https:\/\/www.zhihu.com/"
],
"license": packageInfo.license,
"icon": "https://static.zhihu.com/heifetz/favicon.ico",
"grant": [
"GM_setValue",
"GM_getValue",
"GM_registerMenuCommand",
"GM_unregisterMenuCommand"
]
}