中华典藏

https://www.diancang.xyz/

NRHSYD (2776)08/09 11:04

该用户很懒,什么介绍也没有写!
二维码导入
{
    "bookSourceName": "中华典藏",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/www.diancang.xyz\/",
    "customOrder": 1,
    "enabled": true,
    "enabledCookieJar": false,
    "enabledExplore": true,
    "exploreUrl": "@js:\nconst u = source.key, list = [];\nconst push = (title, url, flex) => list.push({\n  title: title,\n  url: url,\n  style: {\n    layout_flexGrow: 1,\n    layout_flexBasisPercent: flex\n  }\n});\nconst getDoc = url => org.jsoup.Jsoup.parse(java.ajax(url));\nconst doc = getDoc(u);\npush(\"・分类・\", \"\", 1);\ndoc.select('.menu a').forEach(e => push(e.text(), e.attr('href') + \"<,index_{{page}}.html>\", null));\npush(\"・标签・\", \"\", 1);\ndoc.select('.panel-default a').forEach(e => push(e.text(), String(e.attr('href')).replace(\/\\d+\\.html$\/, '{{page-1}}.html'), null));\npush(\"・书单・\", \"\", 1);\nconst sUrl = u + \"\/shudan\", sDoc = getDoc(sUrl);\nconst total = +((sDoc.select('.m-page .disabled').text().match(\/\\\/(\\d+)\/) || [,0])[1]);\nfor (let i = 1; i <= total; ++i) {\n  let page = i == 1 ? \"\": `\/index_${i}.html`;\n  getDoc(sUrl + page).select('.panel-warning .list-group-item a').forEach(e => push(e.text(), e.attr('href'), null));\n}\nJSON.stringify(list);",
    "lastUpdateTime": "1754708679417",
    "respondTime": 192455,
    "ruleBookInfo": {
        "author": "@js:\n`{{@small@a@text}}` || \"中华典藏\";",
        "canReName": "1",
        "coverUrl": ".fmpic@img@src",
        "intro": ".m-summary@html||.panel-body@html",
        "kind": ".alert@a@text",
        "name": "h1@text"
    },
    "ruleContent": {
        "content": "#content@html||.message@html||.panel-body@html"
    },
    "ruleExplore": {},
    "ruleSearch": {
        "author": "@js:\n`{{@[href*=\/renwu\/]@text}}` || \"中华典藏\";",
        "bookList": "tr!0||.panel-body > div",
        "bookUrl": "a.0@href",
        "checkKeyWord": "史记",
        "coverUrl": "img@src",
        "intro": ".m-text@text",
        "name": "a.0@text"
    },
    "ruleToc": {
        "chapterList": "@js:\ntry {\n  java.setContent(String(result).match(\/<div class=\"clearfix\"><\\\/div>([\\s\\S]*?)<div class=\"clearfix\"><\\\/div>\/)[1]);\n  java.getElements('h3,li');\n} catch {\n  java.setContent(`<a href=\"${baseUrl}\">${book.name}<\/a>`);\n  java.getElements('body');\n}\n",
        "chapterName": "text",
        "chapterUrl": "a@href",
        "isVolume": "a@target"
    },
    "searchUrl": "e\/search\/index.php,{\"body\": \"tbname=bookname&show=title,writer&tempid=1&keyboard={{key}}\", \"method\": \"POST\",\"webView\": true}",
    "weight": 0
}
广告