-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathbooks.json
More file actions
90 lines (90 loc) · 6.2 KB
/
books.json
File metadata and controls
90 lines (90 loc) · 6.2 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[
{
"customOrder": 6,
"sourceGroup": "书源",
"sourceIcon": "http://i.loli.net/2021/06/23/S7rvWRZtPIq34MJ.png",
"sourceName": "喵公子书源管理",
"sourceUrl": "https://yuedu.miaogongzi.net/gx.html",
"articleStyle": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 1763049600251,
"singleUrl": true,
"type": 0
},
{
"customOrder": 7,
"sourceGroup": "书源",
"sourceIcon": "https://cdn.jsdelivr.net/gh/DowneyRem/PixivSource@main/doc/pic/yck.png",
"sourceName": "源仓库",
"sourceUrl": "https://www.yckceo.com/yuedu/shuyuan/index.html",
"articleStyle": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 1763049600251,
"singleUrl": true,
"type": 0
},
{
"customOrder": 8,
"sourceComment": "www.yiove.com",
"sourceGroup": "书源",
"sourceIcon": "https://shuyuan.yiove.com/logo.jpeg",
"sourceName": "Yiove 书源仓库",
"sourceUrl": "https://shuyuan.yiove.com",
"articleStyle": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 1763049600251,
"singleUrl": true,
"type": 0
},
{
"articleStyle": 9,
"sourceGroup": "legado",
"sourceIcon": "https://www.yuque.com/favicon.ico",
"sourceName": "使用文档",
"sourceUrl": "https://www.yuque.com/legado/wiki",
"customOrder": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 1763049600251,
"singleUrl": true,
"type": 0
},
{
"articleStyle": 10,
"sourceGroup": "legado",
"sourceIcon": "https://cdn.jsdelivr.net/gh/mgz0227/meowcloud/icon.png",
"sourceName": "Meow云",
"sourceUrl": "https://pan.miaogongzi.net",
"customOrder": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 1763049600251,
"singleUrl": true,
"type": 0
},
{
"articleStyle": 0,
"customOrder": 0,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"injectJs": "if (!/^https:\\/\\/(so\\.toutiao\\.com\\/search\\/?|quark\\.sm\\.cn\\/s|wap\\.sogou\\.com\\/web\\/searchList\\.jsp|m\\.so\\.com\\/s|cn\\.bing\\.com\\/search|www\\.baidu\\.com\\/s)\\?/.test(window.location.href) && !document.getElementById('open-yuedu-bookshelf')) {\n const btn = document.createElement('div');\n btn.innerHTML = `<button type=\"button\" id='open-yuedu-bookshelf' style=\"z-index: 9999999999;position: fixed;bottom: 7%;right: 7%;background-color: rgb(255, 153, 0);border-radius: 2px;border: 1px solid rgb(255, 153, 0);color: #fff;font-size:${window.innerWidth/80}vw;font-weight: 400;padding: ${window.innerWidth/400}vw ${window.innerWidth/150}vw;\" onclick=\"window.open('legado://import/addToBookshelf?src=${encodeURIComponent(window.location.href)}','_blank')\">加入书架</button>`;\n document.body.appendChild(btn);\n}\n\nlet time,num=0;\nconst herfs = new Map();\nfunction onTouchStart(evt) {\n for (const el of evt.path) {\n if (el.tagName === \"A\") {\n if (el.href !== 'javascript:void(0)') {\n const inner = el.href;\n herfs.set(el, inner);\n el.setAttribute('href', 'javascript:void(0)');\n time = setTimeout(() => {\twindow.open(`legado://import/addToBookshelf?src=${encodeURIComponent(inner)}`, '_blank')\n }, 600);\n }\n break;\n }\n }\n};\nfunction onTouchEnd(evt) {\n if (time) {\n clearTimeout(time);\n time = undefined;\n }\n for (const el of evt.path) {\n if (el.tagName === \"A\") {\n if (el.href === 'javascript:void(0)') {\n const herf = herfs.get(el);\n if (herf) {\n el.setAttribute('href', herf)\n }\n }\n break;\n }\n }\n}\n\nfunction addListener(els){\n Array.from(els, (item) => {\n if (item.getAttribute('add-yuedu-bookshelf') !== 'add-yuedu-bookshelf' && item.innerText && item.href && !/^#|^javascript:/.test(item.href)) {\n item.setAttribute('add-yuedu-bookshelf', 'add-yuedu-bookshelf');\n item.addEventListener('touchstart', onTouchStart);\n item.addEventListener('touchend', onTouchEnd);\n item.addEventListener('touchcancel', onTouchEnd);\n item.addEventListener('mousedown', onTouchStart);\n item.addEventListener('mouseup', onTouchEnd);\n }\n });\n num= els.length;\n}\n\nfunction reAdd(){\n const els = document.getElementsByTagName('a');\n if(els.length>num)addListener(els);\n}\n\nreAdd();\n\nconst observer = new ResizeObserver(reAdd);\nobserver.observe(document.body);",
"lastUpdateTime": 1763049600251,
"ruleArticles": "@js:\n[\n {\n \"name\": \"夸克搜索\",\n \"url\": \"https://quark.sm.cn/s?q=小说排行\"\n },\n {\n \"name\": \"搜狗搜索\",\n \"url\": \"https://wap.sogou.com/web/searchList.jsp?keyword=小说排行\"\n },\n {\n \"name\": \"头条搜索\",\n \"url\": \"https://so.toutiao.com/search/?keyword=小说排行\"\n },\n {\n \"name\": \"360搜索\",\n \"url\": \"https://m.so.com/s?q=小说排行\"\n },\n {\n \"name\": \"必应搜索\",\n \"url\": \"https://cn.bing.com/search?q=小说排行\"\n },\n {\n \"name\": \"百度搜索\",\n \"url\": \"https://www.baidu.com/s?wd=小说排行\"\n },\n {\n \"name\":\"谷歌搜索(VPN)\",\n \"url\":\"https://www.google.com/search?q=\"\n }\n]",
"ruleLink": "url",
"ruleTitle": "name",
"sourceGroup": "🔍 搜索",
"sourceIcon": "https://5b0988e595225.cdn.sohucs.com/q_70,c_zoom,w_640/images/20180118/22271e695f5f48a89795e2b9858f5008.jpeg",
"sourceName": "聚合搜索",
"sourceUrl": "https://www.baidu.com",
"type": 0
}
]