网站名称: 包子漫画₁


网站地址: https://cn.baozimh.com


源分享者: fairyflower


更新时间: 2023/04/09

{
    "bookDelayTime": "",
    "bookSingleThread": "否",
    "bookSourceGroup": "",
    "bookSourceName": "包子漫画₁",
    "bookSourceType": "漫画",
    "bookSourceUrl": "https:\/\/cn.baozimh.com",
    "enable": true,
    "httpUserAgent": "",
    "lastUpdateTime": 0,
    "loginUrl": "",
    "loginUrlResult": "",
    "ruleBookAuthor": "class.comics-detail__author@text",
    "ruleBookContent": "@js:\n\nlet list = [];\nlet doc = org.jsoup.Jsoup.parse(result);\nfor (;;) {\n    let arr = doc.select('.comic-contain amp-img');\n    for (let i = 0; i < arr.size(); i++) {\n      \/\/let text = arr[x];\n      let url =  String(arr.get(i).attr(\"src\") + \"#\" + \n          arr.get(i).attr(\"width\") + \"x\" + \n          arr.get(i).attr(\"height\")\n      );\n\n      list.push(url);\n    }\n\n    nextNode = doc.select('.comic-chapter > .next_chapter > a');\n    if (!String(nextNode.text()).match(\/(下一页|下一頁)\/)) break;\n    nextUrl = String(nextNode.attr('href'));\n    doc = org.jsoup.Jsoup.connect(nextUrl).get();\n}\n\nlist;\n@Header:{Referer:thisPage}",
    "ruleBookContentDecoder": "@js:\n\/*\nvar img = java.Bytes2Bitmap(result);\nvar w = img.getWidth();\nvar h = img.getHeight();\nvar m = baseUrl.match(\/#(\\d+)x(\\d+)\/);\nif (w!=m[1] || h!=m[2]) {\n  img = java.zoomImg(img, m[1], m[2]);\n  result = java.Bitmap2Bytes(img);\n}\nresult\n*\/\nvar Magua = new JavaImporter();\nMagua.importPackage(\n  Packages.java.io,\n  Packages.java.lang,\n  Packages.android.util,\n  Packages.android.graphics\n);\nwith(Magua) {\n  function decode(imgBytes, width, height) {\n    var bmp = BitmapFactory.decodeByteArray(imgBytes, 0, imgBytes.length);\n    var bmpWidth = bmp.getWidth();\n    var bmpHeight = bmp.getHeight();\n    \/\/ 判断误差小于200直接返回图片bytes\n    if (200 > Math.abs(((bmpWidth\/width) * height) - bmpHeight)) {\n      return imgBytes;\n    }\n    var newbit = Bitmap.createScaledBitmap(bmp, width, height, true);\n    var baos = new ByteArrayOutputStream();\n    newbit.compress(Bitmap.CompressFormat.PNG, 100, baos);\n    return baos.toByteArray();\n  }\n}\nvar match = baseUrl.match(\/#(\\d+)x(\\d+)\/);\nwidth = Number(match[1]);\nheight = Number(match[2]);\nif (width == 1 && height == 1) {\n  result;\n} else {\n  decode(result, width, height);\n}",
    "ruleBookKind": "class.tag-list@tag.span@text",
    "ruleBookLastChapter": "class.supporting-text@tag.span@tag.a@text",
    "ruleBookName": "class.comics-detail__title@text",
    "ruleBookUrlPattern": "",
    "ruleChapterId": "",
    "ruleChapterList": "@css:div:contains(章节目录)~div.pure-g a.comics-chapters__item||div:contains(最新章节)+div.pure-g a.comics-chapters__item",
    "ruleChapterName": "text",
    "ruleChapterParentId": "",
    "ruleChapterParentName": "",
    "ruleChapterUrl": "",
    "ruleChapterUrlNext": "",
    "ruleContentUrl": "href",
    "ruleContentUrlNext": "",
    "ruleCoverDecoder": "",
    "ruleCoverUrl": "class.pure-u-1-1@tag.amp-img@src",
    "ruleFindUrl": "最新上架::https:\/\/cn.baozimh.com\/list\/new{,_error}\n全部::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=%2a&page=searchPage\n连载::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=serial&filter=%2a&page=searchPage\n完结::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=pub&filter=%2a&page=searchPage\n中国::https:\/\/cn.baozimh.com\/classify?type=all&region=cn&state=all&filter=%2a&page=searchPage\n日本::https:\/\/cn.baozimh.com\/classify?type=all&region=jp&state=all&filter=%2a&page=searchPage\n韩国::https:\/\/cn.baozimh.com\/classify?type=all&region=kr&state=all&filter=%2a&page=searchPage\n欧美::https:\/\/cn.baozimh.com\/classify?type=all&region=en&state=all&filter=%2a&page=searchPage\n恋爱::https:\/\/cn.baozimh.com\/classify?type=lianai&region=all&state=all&filter=%2a&page=searchPage\n纯爱::https:\/\/cn.baozimh.com\/classify?type=chunai&region=all&state=all&filter=%2a&page=searchPage\n古风::https:\/\/cn.baozimh.com\/classify?type=gufeng&region=all&state=all&filter=%2a&page=searchPage\n异能::https:\/\/cn.baozimh.com\/classify?type=yineng&region=all&state=all&filter=%2a&page=searchPage\n悬疑::https:\/\/cn.baozimh.com\/classify?type=xuanyi&region=all&state=all&filter=%2a&page=searchPage\n剧情::https:\/\/cn.baozimh.com\/classify?type=juqing&region=all&state=all&filter=%2a&page=searchPage\n科幻::https:\/\/cn.baozimh.com\/classify?type=kehuan&region=all&state=all&filter=%2a&page=searchPage\n奇幻::https:\/\/cn.baozimh.com\/classify?type=qihuan&region=all&state=all&filter=%2a&page=searchPage\n玄幻::https:\/\/cn.baozimh.com\/classify?type=xuanhuan&region=all&state=all&filter=%2a&page=searchPage\n穿越::https:\/\/cn.baozimh.com\/classify?type=chuanyue&region=all&state=all&filter=%2a&page=searchPage\n冒险::https:\/\/cn.baozimh.com\/classify?type=mouxian&region=all&state=all&filter=%2a&page=searchPage\n推理::https:\/\/cn.baozimh.com\/classify?type=tuili&region=all&state=all&filter=%2a&page=searchPage\n武侠::https:\/\/cn.baozimh.com\/classify?type=wuxia&region=all&state=all&filter=%2a&page=searchPage\n格斗::https:\/\/cn.baozimh.com\/classify?type=gedou&region=all&state=all&filter=%2a&page=searchPage\n战争::https:\/\/cn.baozimh.com\/classify?type=zhanzheng&region=all&state=all&filter=%2a&page=searchPage\n热血::https:\/\/cn.baozimh.com\/classify?type=rexie&region=all&state=all&filter=%2a&page=searchPage\n搞笑::https:\/\/cn.baozimh.com\/classify?type=gaoxiao&region=all&state=all&filter=%2a&page=searchPage\n大女主::https:\/\/cn.baozimh.com\/classify?type=danuzhu&region=all&state=all&filter=%2a&page=searchPage\n都市::https:\/\/cn.baozimh.com\/classify?type=dushi&region=all&state=all&filter=%2a&page=searchPage\n总裁::https:\/\/cn.baozimh.com\/classify?type=zongcai&region=all&state=all&filter=%2a&page=searchPage\n后宫::https:\/\/cn.baozimh.com\/classify?type=hougong&region=all&state=all&filter=%2a&page=searchPage\n日常::https:\/\/cn.baozimh.com\/classify?type=richang&region=all&state=all&filter=%2a&page=searchPage\n韩漫::https:\/\/cn.baozimh.com\/classify?type=hanman&region=all&state=all&filter=%2a&page=searchPage\n少年::https:\/\/cn.baozimh.com\/classify?type=shaonian&region=all&state=all&filter=%2a&page=searchPage\n其它::https:\/\/cn.baozimh.com\/classify?type=qita&region=all&state=all&filter=%2a&page=searchPage\nABCD::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=ABCD&page=searchPage\nEFGH::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=EFGH&page=searchPage\nIJKL::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=IJKL&page=searchPage\nMNOP::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=MNOP&page=searchPage\nQRST::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=QRST&page=searchPage\nUVW::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=UVW&page=searchPage\nXYZ::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=XYZ&page=searchPage\n0-9::https:\/\/cn.baozimh.com\/classify?type=all&region=all&state=all&filter=0-9&page=searchPage",
    "ruleIntroduce": "class.comics-detail__desc@text",
    "ruleSearchAuthor": "class.tags@text",
    "ruleSearchCoverDecoder": "",
    "ruleSearchCoverUrl": "tag.amp-img@src",
    "ruleSearchKind": "",
    "ruleSearchLastChapter": "",
    "ruleSearchList": "class.comics-card",
    "ruleSearchName": "class.comics-card__title@text",
    "ruleSearchNoteUrl": "tag.a.0@href",
    "ruleSearchUrl": "https:\/\/cn.baozimh.com\/search?q=searchKey",
    "ruleSearchUrlNext": "",
    "serialNumber": 8,
    "sourceRemark": "https:\/\/www.webmota.com",
    "weight": 0
}
站长推荐
广告