Pixiv 书源 发布页
https://downeyrem.github.io/PixivSource
分享者: DowneyRem (9968)发布时间: 6天前
Pixiv 书源发布页
可用功能:✅导入书源✅更新书源
书源发布:
Pixiv 书源频道 https://t.me/PixivSource
兽人阅读频道 https://t.me/FurryReading
项目地址:
https://github.com/DowneyRem/PixivSource
https://github.com/eigeen/PixivSourceProject
规则订阅:Import 订阅源
https://cdn.jsdelivr.net/gh/DowneyRem/PixivSource@main/import.json
https://raw.githubusercontent.com/DowneyRem/PixivSource/main/import.json
{
"customOrder": 4,
"sourceName": "Pixiv 书源 发布页",
"sourceUrl": "https:\/\/downeyrem.github.io\/PixivSource",
"sourceIcon": "https:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/doc\/pic\/BookSourcePixiv.png",
"sourceGroup": "🐲 Furry",
"articleStyle": 0,
"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\"}",
"jsLib": "function sleep(time) {\n let endTime = new Date().getTime() + time\n while(true){\n if (new Date().getTime() > endTime){\n return;\n }\n }\n}\n\nfunction sleepToast(text, second) {\n let {java} = this\n java.log(text)\n java.longToast(text)\n if (second === undefined) {second = 0.01}\n sleep(1000*second)\n}\n\nlet bookSourceCommentText = `Pixiv 小说\n\n书源版本:无法获取\n使用说明:📌阅读版本 3.25.0527 及之后版本可用\n可用功能:✅搜索✅发现✅添加网址✅订阅源\n搜索小说:✅单篇✅系列✅标签✅作者\n发现小说:✅关注✅追更✅推荐✅发现\n发现小说:✅收藏✅书签✅首页✅排行\n添加网址:✅Pixiv小说链接✅Pixiv系列链接\n订阅用法:点击订阅源打开小说\/系列小说,【刷新】,点击【加入书架】按钮,添加到书架\n\n书源发布:https:\/\/t.me\/PixivSource\n项目地址:https:\/\/github.com\/DowneyRem\/PixivSource\n使用教程:https:\/\/downeyrem.github.io\/PixivSource\/Pixiv\n\n规则订阅:import 订阅源\nhttps:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/import.json\nhttps:\/\/raw.githubusercontent.com\/DowneyRem\/PixivSource\/main\/import.json\n\n⚙️ 书源设置:\n设置1️⃣:打开小说 - 菜单 - 登录 - 点击下方按钮\n设置2️⃣:编辑书源 - 基本 - 变量说明 - 修改并保存\n\n🚫 屏蔽作者(本地):\n设置方法1️⃣:打开小说 - 菜单 - 登录 - 🚫 屏蔽作者\n`.trim()\n\nfunction updateSource() {\n const {java, source} = this\n let onlineSource, comment\n java.longToast(\"🆙 更新书源\\n\\nJsdelivr CDN 更新有延迟\\nGithub 更新需代理\")\n try {\n let updateUrl = \"https:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/pixiv.json\"\n onlineSource = JSON.parse(java.get(updateUrl,{'User-Agent': 'Mozilla\/5.0 (Linux; Android 14)','X-Requested-With': 'XMLHttpRequest'}).body())[0] \/\/ 第1个书源\n comment = onlineSource.bookSourceComment.split(\"\\n\")\n } catch (e) {\n try {\n let updateUrl = \"https:\/\/raw.githubusercontent.com\/DowneyRem\/PixivSource\/main\/pixiv.json\"\n onlineSource = JSON.parse(java.get(updateUrl,{'User-Agent': 'Mozilla\/5.0 (Linux; Android 14)','X-Requested-With': 'XMLHttpRequest'}).body())[0] \/\/ 第1个书源\n comment = onlineSource.bookSourceComment.split(\"\\n\")\n } catch (e) {\n onlineSource = {lastUpdateTime: new Date().getTime(), bookSourceComment: bookSourceCommentText}\n comment = onlineSource.bookSourceComment.split(\"\\n\")\n }\n }\n\n let htm = `data:text\/html; charset=utf-8,\n<html>\n<head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>更新 Pixiv 书源<\/title>\n <style> \n table { text-align: center; margin: 0 auto; } .ann { display: flex; justify-content: center; align-items: center; height: 5vh; } \n button { background-color: rgb(76, 175, 80); color: white; border: none; border-radius: 4px; height: 6vh; width: 30vw; overflow: hidden; } \n button span { cursor: pointer; display: inline-block; position: relative; transition: 0.4s; } \n button span:after { content: '>'; position: absolute; opacity: 0; top: 0; right: 30px; transition: 0.2s; } \n button:active span { padding-right: 20px; } \n button:active span:after { opacity: 1; right: -40px; }\n <\/style>\n<\/head>\n\n<body>\n <table border=\"1\" cellspacing=\"0\">\n <th colspan=\"2\"> Pixiv 书源 \n <a href=\"https:\/\/downeyrem.github.io\/PixivSource\/Pixiv\">🔰 使用指南<\/a>\n || <a href=\"https:\/\/downeyrem.github.io\/PixivSource\/Sponsor\">❤️ 赞助开发<\/a>\n <\/th>\n <tr>\n <td>☁️ 远程版本:${onlineSource.bookSourceComment.split(\"\\n\")[2].replace(\"书源版本:\", \"\")}<\/td>\n <td>📆 更新:${java.timeFormat(onlineSource.lastUpdateTime)}<\/td>\n <\/tr>\n <tr><td colspan=\"2\" style=\"text-align: left;\">${comment.slice(3, 10).join(\"<br>\")}<\/td><\/tr>\n <tr><td colspan=\"2\" style=\"text-align: left;\">${comment.slice(comment.length-20, comment.length).join(\"<br>\")}<\/td><\/tr>\n <\/table>\n \n <table border=\"0\" cellspacing=\"20\">\n <th colspan=\"2\"> 更新 Pixiv 书源 <\/th>\n <tr><td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/pixiv.json\">\n <button><span>更新书源<br>(Jsdelivr CDN)<\/span><\/button>\n <\/a><\/div><\/td>\n \n <td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/btsrk.json\">\n <button><span>更新订阅<br>(Jsdelivr CDN)<\/span><\/button>\n <\/a><\/div><\/td>\n <\/tr>\n \n <tr><td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/raw.githubusercontent.com\/DowneyRem\/PixivSource\/main\/pixiv.json\">\n <button><span>书源链接<br>(GitHub)<\/span><\/button>\n <\/a><\/div><\/td>\n \n <td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/raw.githubusercontent.com\/DowneyRem\/PixivSource\/main\/btsrk.json\">\n <button><span>订阅链接<br>(GitHub)<\/span><\/button>\n <\/a><\/div><\/td>\n <\/tr>\n \n <tr><td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/codeberg.org\/DowneyRem\/PixivSource\/raw\/branch\/main\/pixiv.json\">\n <button><span>备用书源链接<br>(Codeberg)<\/span><\/button>\n <\/a><\/div><\/td>\n \n <td><div class=\"ann\">\n <a href=\"legado:\/\/import\/importonline?src=https:\/\/codeberg.org\/DowneyRem\/PixivSource\/raw\/branch\/main\/btsrk.json\">\n <button><span>备用订阅链接<br>(Codeberg)<\/span><\/button>\n <\/a><\/div><\/td>\n <\/tr>\n <\/table>\n<\/body>\n<\/html>`;\n java.startBrowser(htm,'更新书源');\n return []\n}",
"lastUpdateTime": 1763913600251,
"loginUi": "[\n {\n \"name\": \"🆙 更新书源\",\n \"type\": \"button\",\n \"action\": \"updateSource()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n },\n {\n \"name\": \"\\uD83D\\uDD30 使用指南\",\n \"type\": \"button\",\n \"action\": \"startGithubReadme()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n },\n {\n \"name\": \"\\uD83D\\uDC1E 反馈问题\",\n \"type\": \"button\",\n \"action\": \"startGithubIssue()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n },\n {\n \"name\": \"⭐️ 收藏项目\",\n \"type\": \"button\",\n \"action\": \"startGithubLogin()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n },\n {\n \"name\": \"\\uD83C\\uDD7F️ 书源频道\",\n \"type\": \"button\",\n \"action\": \"startTelegram()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n },\n {\n \"name\": \"❤\\uFE0F 赞助开发\",\n \"type\": \"button\",\n \"action\": \"startGithubSponsor()\",\n \"style\": {\n \"layout_flexGrow\": 1,\n \"layout_flexBasisPercent\": -1\n }\n }\n]",
"loginUrl": "function getWebViewUA() {\n let userAgent = String(java.getWebViewUA())\n if (userAgent.includes(\"Windows NT 10.0; Win64; x64\")) {\n userAgent = \"Mozilla\/5.0 (Linux; Android 10; K) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Mobile Safari\/537.36\"\n }\n return String(userAgent)\n}\n\nfunction login() {}\n\nfunction startBrowser(url, title) {\n let msg = \"\", headers = `{\"headers\": {\"User-Agent\":\"${getWebViewUA()}\"}}`\n if (url.includes(\"https:\/\/github.com\")) {\n if (url.includes(\"issues\")) msg += \"🐞 反馈问题\"\n else if (url.includes(\"doc\")) msg += \"🔰 使用指南\"\n else msg += \"⭐️ 收藏项目\"\n msg += \"\\n\\n即将打开 Github\\n请确认已开启代理\/梯子\/VPN等\"\n } else if (url.includes(\"https:\/\/t.me\")) {\n if (url.includes(\"FurryReading\")) msg += \"🐺 兽人阅读频道\"\n else if (url.includes(\"joinchat\")) msg += \"🐞 反馈群组\"\n msg += \"\\n\\n即将打开 Telegram\\n请确认已开启代理\/梯子\/VPN等\"\n }\n sleepToast(msg)\n java.startBrowser(`${url}, ${headers}`, title)\n}\n\nfunction startGithub() {\n startBrowser(\"https:\/\/github.com\/DowneyRem\/PixivSource\", \"书源介绍\")\n}\nfunction startGithubLogin() {\n startBrowser(\"https:\/\/github.com\/login?return_to=https:\/\/github.com\/DowneyRem\/PixivSource\", \"收藏项目\")\n}\nfunction startGithubIssue() {\n startBrowser(\"https:\/\/github.com\/DowneyRem\/PixivSource\/issues\", \"反馈问题\")\n}\nfunction startGithubReadme() {\n startBrowser(\"https:\/\/downeyrem.github.io\/PixivSource\/Pixiv\", \"使用指南\")\n}\nfunction startGithubSponsor() {\n startBrowser(\"https:\/\/downeyrem.github.io\/PixivSource\/Sponsor\", \"使用指南\")\n}\nfunction startTelegram() {\n startBrowser(\"https:\/\/t.me\/PixivSource\", \"Pixiv 书源频道\")\n}",
"singleUrl": true,
"sourceComment": "Pixiv 书源项目\n\n可用功能:✅导入书源✅更新书源\n\n书源发布:\nPixiv 书源频道 https:\/\/t.me\/PixivSource\n兽人阅读频道 https:\/\/t.me\/FurryReading\n\n项目地址:\nhttps:\/\/github.com\/DowneyRem\/PixivSource\nhttps:\/\/github.com\/eigeen\/PixivSourceProject\n\n规则订阅:Import 订阅源\nhttps:\/\/cdn.jsdelivr.net\/gh\/DowneyRem\/PixivSource@main\/import.json\nhttps:\/\/raw.githubusercontent.com\/DowneyRem\/PixivSource\/main\/import.json",
"type": 0
}