🍩墨坛文学[自写]

http://www.22mt.net/#xsw8093

xiang-shiwang (3664)08/26 15:32

/*
* 同库: 三界文学 -- http://www.3jwx.com
*/
二维码导入
{
    "bookSourceComment": "\/*\n* 同库: 三界文学 -- http:\/\/www.3jwx.com\n*\/",
    "bookSourceGroup": "",
    "bookSourceName": "🍩墨坛文学[自写]",
    "bookSourceType": 0,
    "bookSourceUrl": "http:\/\/www.22mt.net\/#xsw8093",
    "customOrder": -58297,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "exploreUrl": "",
    "header": "{\n    'User-Agent': 'Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/81.0.4044.138 Safari\/537.36',\n    \"Cookie\":\"0\"\n}",
    "lastUpdateTime": "1724657520057",
    "respondTime": 180000,
    "ruleBookInfo": {
        "author": "@get:{a}",
        "coverUrl": "@get:{c}",
        "init": "@put:{\nn:\"[property$=book_name|title]@content\",\na:\"[property$=author]@content\",\nk:\"[property~=category|status|update_time]@content\",\nl:\"[property$=latest_chapter_name]@content\",\ni:\"[property$=description]@content\",\nc:\"[property$=image]@content\"\n}",
        "intro": "@get:{i}",
        "kind": "@get:{k}",
        "lastChapter": "@get:{l}",
        "name": "@get:{n}",
        "tocUrl": "",
        "wordCount": ""
    },
    "ruleContent": {
        "content": "#content@html\n@js:\n\/*\nresult=result.replace(\/<br>\/g,\"<p><\/p>\").replace(\/ \/g,\"<p><\/p>\")\n*\/\nresult",
        "nextContentUrl": "text.下一@href\n@js:\nif(result){\n result=result[0].includes(\"_\")?result:\"\";\n}",
        "replaceRegex": ""
    },
    "ruleExplore": {
        "author": "",
        "bookList": "",
        "bookUrl": "",
        "coverUrl": "",
        "intro": "",
        "kind": "",
        "lastChapter": "",
        "name": ""
    },
    "ruleSearch": {
        "author": ".author@text##作者:##",
        "bookList": ".bookbox",
        "bookUrl": ".bookname@a@href",
        "checkKeyWord": "剑来",
        "coverUrl": ".bookimg@img@src",
        "intro": "p@text",
        "kind": ".cat@text##分类:##",
        "lastChapter": ".update@a@text",
        "name": ".bookname@a@text",
        "wordCount": ""
    },
    "ruleToc": {
        "chapterList": ".listmain@dd@a",
        "chapterName": "text",
        "chapterUrl": "href",
        "nextTocUrl": "option@value",
        "updateTime": ""
    },
    "searchUrl": "@js:\nvar su=source.getKey()\nvar htmlUrl=java.get(su,{}).headers('Location')\njava.log(`重定向:${htmlUrl[0]}`)\nvar posturl=htmlUrl[0]?htmlUrl[0]:(su.includes(\"#\")?su.match(\/([^\\#]+)\\#\/)[1]:su)\nposturl = posturl.slice(-1)=='\/'?posturl.slice(0,-1):posturl\ncookie.removeCookie(posturl)\njava.log(`请求:${posturl}`)\n\n\nvar html = java.ajax(posturl+\",\"+JSON.stringify({\"webView\":true}));\n\nsearch = org.jsoup.Jsoup.parse(html).select('form[name=form]').attr('action');\n\n\nposturl+search+\",\"+JSON.stringify({\r\n  \"body\": \"ie=gbk&q={{key}}\",\r\n  \"method\": \"POST\",\n  \"charset\":\"gbk\"\r\n})",
    "weight": 0
}
站长推荐
广告