-
Notifications
You must be signed in to change notification settings - Fork 1
/
btsrk.json
106 lines (106 loc) · 5.83 KB
/
btsrk.json
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
[
{
"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;\n position: fixed;bottom: 7%;right: 7%;background-color: rgb(255, 153, 0);border-radius: 2px;border: 1px solid rgb(255, 153, 0);color: #fff;\n font-size:${window.innerWidth/80}vw;font-weight: 400;padding: ${window.innerWidth/400}vw ${window.innerWidth/150}vw;\n \"onclick=\"window.open('legado://import/addToBookshelf?src=${encodeURIComponent(window.location.href)}','_blank');location.reload();\">加入书架</button>`;\n document.body.appendChild(btn);\n }\n \n let time,num=0;\n const herfs = new Map();\n function 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\tfor (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){\nArray.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 });\nnum= els.length;\n}\n\nfunction reAdd(){\n\t\tconst els = document.getElementsByTagName('a');\n\tif(els.length>num)addListener(els);\n}\n\nreAdd();\n\nconst observer = new ResizeObserver(reAdd);\nobserver.observe(document.body);",
"header": "{\"User-Agent\"=\"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36\"}",
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"loginUrl": "",
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://asset.brandfetch.io/idIlKj_n7C/idSsbP7h1m.png",
"sourceName": "Pixiv",
"sourceUrl": "https://www.pixiv.net/novel"
},
{
"articleStyle": 0,
"customOrder": 2,
"enableJs": true,
"enabled": true,
"enabledCookieJar": false,
"header": "{\"User-Agent\"=\"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36 Reader\"}",
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sortUrl": "",
"sourceGroup": "Furry",
"sourceIcon": "https://furrynovel.ink/apple-touch-icon.png",
"sourceName": "Linpx NURUPO",
"sourceUrl": "https://furrynovel.ink/?from=read"
},
{
"articleStyle": 0,
"customOrder": 2,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"header": "{\"User-Agent\"=\"Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36 Reader\"}",
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://www.furrynovel.com/static/icon.png",
"sourceName": "兽人控小说 NURUPO",
"sourceUrl": "https://www.furrynovel.com/zh/?utm_source=reader"
},
{
"articleStyle": 0,
"customOrder": 4,
"enableJs": true,
"enabled": true,
"enabledCookieJar": false,
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://raw.githubusercontent.com/FurryGamesIndex/games/master/assets/_README/logo.png",
"sourceName": "兽人控游戏索引",
"sourceUrl": "https://furrygames.top/zh-cn/list-b.html"
},
{
"articleStyle": 0,
"customOrder": 5,
"enableJs": true,
"enabled": true,
"enabledCookieJar": false,
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://img.srkyxk.com/logo-512x512.png",
"sourceName": "兽人游戏库",
"sourceUrl": "https://kemono.games/zh-Hans/explore?sort=latest_update"
},
{
"articleStyle": 0,
"customOrder": 6,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://images.furrycons.cn/logo_800x800.png",
"sourceName": "兽展日历",
"sourceUrl": "https://www.furrycons.cn/"
},
{
"articleStyle": 0,
"customOrder": 7,
"enableJs": true,
"enabled": true,
"enabledCookieJar": true,
"lastUpdateTime": 0,
"loadWithBaseUrl": true,
"singleUrl": true,
"sourceGroup": "Furry",
"sourceIcon": "https://www.furryfusion.net/images/LOGO.png",
"sourceName": "兽聚汇总",
"sourceUrl": "https://www.furryfusion.net/"
}
]