101看书

https://101kks.com

bjl1015 (13176)09/14 15:36

台湾,需要代理
二维码导入
{
    "bookSourceComment": "台湾,需要代理",
    "bookSourceGroup": "",
    "bookSourceName": "101看书",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/101kks.com",
    "bookUrlPattern": "https:\/\/101kks.com\/book\/\\d+.html",
    "customButton": false,
    "customOrder": 0,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "eventListener": false,
    "exploreUrl": "@js:\r\nconst list = [];\r\nconst html = java.ajax(\"https:\/\/101kks.com\");\r\n\r\nlist.push({\r\n    title: \"标签-按更新排序?\",\r\n    url: \"\",\r\n    style: { layout_flexGrow: 1, layout_flexBasisPercent: 1 }\r\n});\r\n\r\n\/\/ 精准匹配分类链接:限定\/newtag\/路径,兼容标签其他属性\r\nconst reg = \/<a href=\"(\\\/newtag\\\/[^\"]+)\"[^>]*>([^<]+)<\\\/a>\/g;\r\nlet match;\r\nwhile ((match = reg.exec(html)) !== null) {\r\n\tconst title = match[2].trim();\r\n\t\/\/ 路径规范化:去掉结尾斜杠后统一拼接分页格式\r\n\tconst basePath = match[1].replace(\/\\\/$\/, '');\r\n\tlist.push({\r\n\t\ttitle: title,\r\n\t\turl: `${basePath}\/{{page}},{\"webView\":true}`,\r\n\t\tstyle: {\r\n\t\t\tlayout_flexGrow: 1,\r\n\t\t\tlayout_flexBasisPercent: 0.2\r\n\t\t}\r\n\t});\r\n}\r\n\r\nJSON.stringify(list);",
    "lastUpdateTime": "1789371397095",
    "loginCheckJs": "if (result.body().match(\/<title>(请稍候…|Just a moment...)<\\\/title>\/)){\n\turl = key ? (java.ruleUrl) : result.url();\n\tjava.startBrowserAwait(url,\"验证\")\n}\nresult",
    "respondTime": 180000,
    "ruleBookInfo": {
        "coverUrl": ".bookimg2>img@src",
        "init": "@js:\nconst matchResult = baseUrl.match(\/\\\/(\\d+)\\.html\/); \nconst id = matchResult ? matchResult[1] : null; \njava.log(id);\njava.put('bookId',id)\nresult",
        "kind": ".booknav2@p.1@a@text",
        "lastChapter": ".booknav2@p.3@text##更新:##",
        "name": "h1>a@text",
        "tocUrl": "https:\/\/101kks.com\/ajax_novels\/chapterlist\/{{java.get('bookId')}}.html,{\r\n    \"method\": \"GET\",\n    \"headers\": {\"referer\": \"https:\/\/101kks.com\/book\/{{java.get('bookId')}}\/index.html\"},\n    \"webView\": true\r\n}",
        "wordCount": ".booknav2@p.2@text"
    },
    "ruleContent": {
        "content": "#txtcontent@html"
    },
    "ruleExplore": {
        "coverUrl": "img@src"
    },
    "ruleSearch": {
        "author": ".labelbox@label.0@text",
        "bookList": "#article_list_content li",
        "bookUrl": "h3@a.1@href##$##,{\"webView\":true}",
        "coverUrl": "img@src",
        "intro": "ol.ellipsis_2@text",
        "kind": ".labelbox@label.1@text",
        "lastChapter": ".zxzj>p>a@text",
        "name": "h3@a.1@text",
        "wordCount": ".labelbox@label.2@text"
    },
    "ruleToc": {
        "chapterList": "ul li",
        "chapterName": "a@text",
        "chapterUrl": "a@href##$##,{\"webView\":true}"
    },
    "searchUrl": "https:\/\/101kks.com\/search\/{{key}}\/{{page}}.html,{\"webView\":true}",
    "weight": 0
}
广告