博趣中文

https://www.1bqg.net

jh16888 (2406)2023/09/07

修复
二维码导入
{
    "bookSourceComment": "搜索有验证码,可在浏览器复制书籍链接,再到阅读首页书架添加网址。\n\/\/同库(我来读网):https:\/\/m.wolaido.com\n\/\/同库(博趣中文):https:\/\/m.1bqg.net\n\/\/同库(博看小说):https:\/\/m.kchao.net\n\/\/同库(希望中文):https:\/\/m.5xw.net\n\/\/同库(趣七书屋):https:\/\/m.qu7.net\n\/\/同库(洪都中文):https:\/\/m.nchdzx.com",
    "bookSourceGroup": "修复",
    "bookSourceName": "博趣中文",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/www.1bqg.net",
    "bookUrlPattern": "https:\/\/m.1bqg.net\/1bqg.*",
    "customOrder": 0,
    "enabled": false,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "exploreUrl": "[{\"title\":\"书库\",\"url\":\"\/all\/index.html\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"排行榜\",\"url\":\"\/rank\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"完本小说\",\"url\":\"\/finish\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"玄幻奇幻\",\"url\":\"\/1bqg81\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"仙侠武侠\",\"url\":\"\/1bqg82\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"女生言情\",\"url\":\"\/1bqg83\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"二次元\",\"url\":\"\/1bqg84\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"历史军事\",\"url\":\"\/1bqg85\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"游戏竞技\",\"url\":\"\/1bqg86\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"灵异悬疑\",\"url\":\"\/1bqg87\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"都市重生\",\"url\":\"\/1bqg88\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},{\"title\":\"科幻未来\",\"url\":\"\/1bqg89\/\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}}]",
    "header": "",
    "lastUpdateTime": 1694063832703,
    "loginUrl": "https:\/\/m.1bqg.net\/member\/login.html",
    "respondTime": 3758,
    "ruleBookInfo": {
        "author": "[property$=author]@content",
        "coverUrl": "[property$=image]@content",
        "intro": "[property$=description]@content##(^|[。!?]+[”」)】]?)##$1<br>",
        "kind": "[property~=category|status|update_time]@content##T.*",
        "lastChapter": "[property$=latest_chapter_name]@content##正文卷.|正文.|VIP卷.|默认卷.|卷_|VIP章节.|免费章节.|章节目录.|最新章节.|[\\((【].*?[求更票谢乐发订合补加架字修Kk].*?[】)\\)]",
        "name": "[property$=book_name]@content",
        "tocUrl": ""
    },
    "ruleContent": {
        "content": "<js>\nif (\/内容正在载入\/.test(src)) {\n    c2 = src.match(\/c2=\"([^\"]+)\/)[1];\n    url = src.match(\/src=\"([^\"]+)\/)[1];\n    j = java.ajax(source.getKey() + url);\n    reg = \/function ajax[\\s\\S]+?\\}(?=Ajax)\/;\n    eval(String(j.match(reg)[0]))\n    java.ajax(source.getKey() + ajax(c2))\n    h = java.ajax(baseUrl);\n    java.setContent(h), h;\n} else result;\n<\/js>div.TxtContent@html||div#content@html##\\\"|\\.",
        "imageStyle": "",
        "nextContentUrl": "div#PageSet@span+a@href",
        "replaceRegex": "##本章没完.*|.*提醒您:看完记得.*|\\\""
    },
    "ruleExplore": {},
    "ruleReview": {},
    "ruleSearch": {
        "author": "dd.1@span.0@text##作者:##",
        "bookList": "<js>su = source.getKey()\nbaseUrl = baseUrl.replace(\/=$\/, \"\")\nif (\/内容正在载入\/.test(result)) {\n    c2 = result.match(\/c2=\"([^\"]+)\/)[1];\n    url = result.match(\/src=\"([^\"]+)\/)[1];\n    j = java.ajax(su + url);\n    reg = \/function ajax[\\s\\S]+?\\}(?=Ajax)\/;\n    eval(String(j.match(reg)[0]))\n    java.ajax(su + ajax(c2))\n    result = java.ajax(baseUrl)\n}\n\nwhile (\/请输入验证码:\/.test(result)) {\n\timg = `${su}\/member\/getcode.asp,{\"headers\":{\"Referer\":\"${baseUrl}\"}}`;\n\n code=java.getVerificationCode(img)\n\taa=org.jsoup.Jsoup.parse(result)\n\taa.select(\"[placeholder=请输入验证码]\").attr(\"value\",code)\n\tbody=Array.from(aa.select(\"form[name=frmss] input\"),x=>x.attr(\"name\")+\"=\"+x.attr(\"value\")).join(\"&\")\n\tresult=java.ajax(`${baseUrl},{\n  \"body\": \"${body}\",\n  \"charset\": \"GBK\",\n  \"headers\": {\n\"Referer\": \"${baseUrl}\"\n  },\n  \"method\": \"POST\"\n}`)\n}\n\nresult\n<\/js>dl.B",
        "bookUrl": "a.0@href",
        "checkKeyWord": "剑来",
        "coverUrl": "img.0@src",
        "intro": "dd.2@text",
        "kind": "dd.1@span.1@text",
        "lastChapter": "a.2@text",
        "name": "dt.0@text"
    },
    "ruleToc": {
        "chapterList": "ul.1@li||dl@dd",
        "chapterName": "tag.a@text",
        "chapterUrl": "tag.a@href"
    },
    "searchUrl": "@js:url = source.getKey()\nhtml = java.ajax(url)\nact = org.jsoup.Jsoup.parse(html).select('form[name~=earch] input[name=act]').attr('value')\n\nsubmit = java.encodeURI(\/www\/.test(url) ? \"搜索 \" : \"快速搜书\", 'gbk')\nurl += \"\/sscc\/\"\nbody = `act=${act}&q=${java.encodeURI(key, 'gbk')}&submit=${submit}`\n\nre=java.post(url,body,{})\nck=re.header(\"Set-Cookie\")\ncookie.replaceCookie(url,ck)\nrr=re.header(\"Location\")\nreurl=url+rr",
    "variableComment": "",
    "weight": 0
}
广告