{
  "schemaVersion": 1,
  "rules": [
    {
      "schemaVersion": 1,
      "id": "manhuagui",
      "label": "漫画柜",
      "version": 1,
      "engine": "manhuagui",
      "match": {
        "origins": [
          "https://www.manhuagui.com",
          "https://manhuagui.com"
        ],
        "routes": [
          "/comic/{bookId}/{chapterId}.html"
        ],
        "canonical": "/comic/{bookId}/{chapterId}.html"
      },
      "source": {
        "kind": "native-chapter",
        "bootstrap": "document-start",
        "imageSelector": "#mangaFile",
        "imageHosts": [
          "*.hamreus.com"
        ],
        "imageHostDepth": 1,
        "imageSuffixFallback": ".webp",
        "hook": {
          "global": "SMH",
          "method": "imgData",
          "argument": 0,
          "restore": [
            "utils",
            "goPage"
          ]
        },
        "fields": {
          "bookId": "bid",
          "chapterId": "cid",
          "files": "files",
          "count": "len",
          "directory": "path",
          "title": "bname",
          "chapterTitle": "cname",
          "previousId": "prevId",
          "nextId": "nextId"
        },
        "catalogRoute": "/comic/{bookId}/"
      },
      "page": {
        "hash": "p"
      },
      "cover": {
        "selector": ".book-cover img"
      },
      "catalog": {
        "groupSelector": ".chapter > .chapter-list",
        "itemSelector": ":scope > ul > li > a[href]",
        "groupTitleSelector": "h4",
        "groupSiblingSelector": ".chapter-page, .chapter-list",
        "titleAttribute": "title",
        "titleDecorationSelector": "i, em"
      }
    },
    {
      "schemaVersion": 1,
      "id": "mycomic",
      "label": "MYCOMIC",
      "version": 2,
      "engine": "dom",
      "match": {
        "origins": [
          "https://mycomic.com"
        ],
        "routes": [
          "/chapters/{chapterId}",
          "/cn/chapters/{chapterId}"
        ],
        "canonical": "/chapters/{chapterId}"
      },
      "source": {
        "imageSelector": "img.page",
        "urlAttributes": [
          "data-src",
          "src"
        ],
        "imageHosts": [
          "biccam.com"
        ],
        "titleSelector": "[data-flux-breadcrumbs] a[href*=\"/comics/\"]",
        "chapterTitleSelector": "[data-flux-breadcrumbs-item]:last-child",
        "bookSelector": "[data-flux-breadcrumbs] a[href*=\"/comics/\"]",
        "complete": true
      },
      "page": {
        "hash": "bmui-page"
      },
      "catalog": {
        "linkSelector": "[data-flux-breadcrumbs] a[href*=\"/comics/\"]",
        "itemSelector": "a[\\:href=\"chapterUrl(chapter)\"]",
        "kind": "json-attribute",
        "containerSelector": "[x-data]",
        "attribute": "x-data",
        "arrayField": "chapters",
        "chapterRoute": "/chapters/{chapterId}",
        "bookPathPrefixes": [
          "/comics/",
          "/cn/comics/"
        ],
        "documentFallback": true,
        "idField": "id",
        "titleField": "title",
        "groupTitleSelector": "h2,h3,h4"
      },
      "navigation": {
        "previousText": [
          "上一話",
          "上一话"
        ],
        "nextText": [
          "下一話",
          "下一话"
        ]
      },
      "cover": {
        "selector": "[data-comic-cover] img, .comic-cover img, img[itemprop=\"image\"]",
        "detailSelector": "[data-flux-breadcrumbs] a[href*=\"/comics/\"]",
        "asset": {
          "host": "biccam.com",
          "pathPrefix": "/comics/",
          "bookIdSeparator": "-",
          "siteReferrer": true
        }
      }
    },
    {
      "schemaVersion": 1,
      "id": "dm5",
      "label": "DM5 / 1kkk",
      "version": 2,
      "engine": "paged",
      "match": {
        "origins": [
          "https://www.dm5.com",
          "https://www.1kkk.com"
        ],
        "routes": [
          "/m{chapterId}-p{page}/",
          "/m{chapterId}/"
        ],
        "canonical": "/m{chapterId}/"
      },
      "source": {
        "prefix": "DM5_",
        "endpoint": "chapterfun.ashx",
        "imageHosts": [
          "*.cdndm5.com"
        ],
        "imageSelector": "#cp_image",
        "keySelector": "#dm5_key",
        "globals": {
          "bookId": "MID",
          "chapterId": "CID",
          "pageCount": "IMAGE_COUNT",
          "page": "PAGE",
          "pageIndex": "PAGEINDEX",
          "title": "CTITLE",
          "signature": "VIEWSIGN",
          "timestamp": "VIEWSIGN_DT"
        },
        "requestParams": {
          "cid": "{chapterId}",
          "page": "{page}",
          "key": "{key}",
          "_cid": "{chapterId}",
          "_mid": "{bookId}",
          "_dt": "{timestamp}",
          "_sign": "{signature}",
          "language": "1",
          "gtk": "6"
        },
        "reusedImagePrefix": "/zszj/"
      },
      "page": {
        "hash": "ipg"
      },
      "navigation": {
        "chapterPaths": [
          "/m{chapterId}/",
          "/m{chapterId}-p{page}/"
        ],
        "nextSelector": "a.view-btn-next",
        "previousText": [
          "上一章"
        ],
        "nextText": [
          "下一章"
        ]
      },
      "catalog": {
        "linkSelector": "a.view-btn-back, a.back",
        "itemSelector": "#detail-list-select-1 a[href], #detail-list-select-2 a[href], #detail-list-select-3 a[href]",
        "paths": [
          "/manhua-{slug}/"
        ],
        "groupSelector": "[id^=\"detail-list-select-\"]",
        "groupNames": {
          "detail-list-select-1": "连载",
          "detail-list-select-2": "单行本",
          "detail-list-select-3": "番外"
        }
      },
      "cover": {
        "selector": ".banner_detail_form .cover img, .detail-info-cover img",
        "detailSelector": "a.view-btn-back, a.back"
      },
      "sites": {
        "https://www.1kkk.com": {
          "match": {
            "routes": [
              "/ch{episode}-{chapterId}-p{page}/",
              "/ch{episode}-{chapterId}/",
              "/m{chapterId}-p{page}/",
              "/m{chapterId}/",
              "/other{chapterId}-p{page}/",
              "/other{chapterId}/"
            ],
            "canonical": "/ch{episode}-{chapterId}/"
          },
          "navigation": {
            "chapterPaths": [
              "/ch{episode}-{chapterId}/",
              "/ch{episode}-{chapterId}-p{page}/",
              "/m{chapterId}/",
              "/m{chapterId}-p{page}/",
              "/other{chapterId}-p{page}/",
              "/other{chapterId}/"
            ]
          },
          "catalog": {
            "paths": [
              "/manhua{bookId}/"
            ]
          },
          "legacyId": "1kkk"
        }
      }
    },
    {
      "schemaVersion": 1,
      "id": "yymanhua",
      "label": "YY漫画 / Mangabz / X漫画",
      "version": 1,
      "engine": "paged",
      "match": {
        "origins": [
          "https://www.yymanhua.com",
          "https://www.mangabz.com",
          "https://www.xmanhua.com"
        ],
        "routes": [
          "/m{chapterId}-p{page}/",
          "/m{chapterId}/"
        ],
        "canonical": "/m{chapterId}/"
      },
      "source": {
        "prefix": "YYMANHUA_",
        "endpoint": "chapterimage.ashx",
        "imageHosts": [
          "image.yymanhua.com"
        ],
        "imageSelector": "#cp_image",
        "chapterTitleSelector": ".reader-title a:last-child",
        "globals": {
          "bookId": "MID",
          "chapterId": "CID",
          "pageCount": "IMAGE_COUNT",
          "page": "PAGE",
          "pageIndex": "PAGEINDEX",
          "title": "CTITLE",
          "signature": "VIEWSIGN",
          "timestamp": "VIEWSIGN_DT"
        },
        "requestParams": {
          "cid": "{chapterId}",
          "page": "{page}",
          "key": "{key}",
          "_cid": "{chapterId}",
          "_mid": "{bookId}",
          "_dt": "{timestamp}",
          "_sign": "{signature}"
        }
      },
      "page": {
        "hash": "ipg"
      },
      "navigation": {
        "chapterPaths": [
          "/m{chapterId}/",
          "/m{chapterId}-p{page}/"
        ],
        "previousSelector": "a:has(img[src$=\"reader-bottom-right-1.png\"])",
        "nextSelector": "a:has(img[src$=\"reader-bottom-right-2.png\"])"
      },
      "catalog": {
        "linkSelector": ".reader-title a[href]",
        "itemSelector": "#chapterlistload a[href]",
        "paths": [
          "/{bookId}yy/"
        ]
      },
      "cover": {
        "selector": "img.detail-info-cover, .detail-info-cover img, .detail-cover img",
        "detailSelector": ".reader-title a[href$=\"yy/\"]"
      },
      "sites": {
        "https://www.yymanhua.com": {
          "catalog": {
            "inlineSelector": ".reader-bottom-right-list-con a[href]"
          }
        },
        "https://www.mangabz.com": {
          "source": {
            "prefix": "MANGABZ_",
            "imageHosts": [
              "image.mangabz.com"
            ],
            "chapterTitleSelector": ".top-title"
          },
          "navigation": {
            "previousSelector": "a:has(img[src$=\"icon_shangyizhang.png\"])",
            "nextSelector": "a:has(img[src$=\"icon_xiayizhang.png\"])"
          },
          "catalog": {
            "linkSelector": ".top-title a[href]",
            "paths": [
              "/{bookId}bz/"
            ]
          },
          "cover": {
            "detailSelector": ".top-title a[href$=\"bz/\"]"
          },
          "legacyId": "mangabz"
        },
        "https://www.xmanhua.com": {
          "source": {
            "prefix": "XMANHUA_",
            "imageHosts": [
              "image.xmanhua.com"
            ]
          },
          "catalog": {
            "inlineSelector": ".reader-bottom-right-list-con a[href]",
            "paths": [
              "/{bookId}xm/"
            ]
          },
          "cover": {
            "detailSelector": ".reader-title a[href$=\"xm/\"]"
          },
          "legacyId": "xmanhua"
        }
      }
    },
    {
      "schemaVersion": 1,
      "id": "manhuaren",
      "label": "漫画人",
      "version": 1,
      "engine": "structured",
      "match": {
        "origins": [
          "https://www.manhuaren.com"
        ],
        "routes": [
          "/m{chapterId}/"
        ],
        "canonical": "/m{chapterId}/"
      },
      "source": {
        "kind": "page-array",
        "method": "global-array",
        "imageHosts": [
          "*.cdndm5.com"
        ],
        "readerImageSelector": "#cp_img img",
        "pagesGlobal": "newImgs",
        "bookIdGlobal": "DM5_MID",
        "chapterIdGlobal": "DM5_CID",
        "pageIndexGlobal": "newPageIndex",
        "titleGlobal": "DM5_COMIC_MNAME",
        "chapterTitleGlobal": "DM5_CNAME",
        "totalGlobal": "DM5_IMAGE_COUNT",
        "totalSelector": ".view-fix-top-bar-title",
        "navigationSelector": ".view-bottom-bar a, .view-fix-bottom-bar a",
        "catalogGroupSelector": ".detail-list-select",
        "catalogLinkSelector": "li > a[href]",
        "catalogGroupNames": {
          "detail-list-select-1": "连载",
          "detail-list-select-2": "单行本",
          "detail-list-select-3": "番外"
        },
        "catalogRoute": "/chapterlist{bookId}/",
        "fallbackPageIndexGlobal": "pageNow",
        "navigationLinkFunction": "pushHistory",
        "navigationPreviousText": "上一章",
        "navigationNextText": "下一章",
        "documentTitleSeparator": "_",
        "documentTitleSuffix": "漫画"
      },
      "page": {
        "hash": "bmui-page"
      },
      "cover": {
        "selector": ".detail-main-cover img, .banner_detail_form .cover img, .detail-info-cover img, .detail-cover img",
        "detailSelector": "a[href^=\"/manhua\"], a[href^=\"/chapterlist\"]",
        "lookup": {
          "path": "/search",
          "titleParam": "title",
          "params": {
            "language": "1"
          },
          "resultSelector": ".book-list-cover > a[href^=\"/manhua-\"] > img.book-list-cover-img",
          "imageBookIdIndex": 1
        }
      }
    },
    {
      "schemaVersion": 1,
      "id": "zaimanhua",
      "label": "再漫画",
      "version": 1,
      "engine": "structured",
      "match": {
        "origins": [
          "https://manhua.zaimanhua.com"
        ],
        "routes": [
          "/view/{slug}/{bookId}/{chapterId}"
        ],
        "canonical": "/view/{slug}/{bookId}/{chapterId}"
      },
      "source": {
        "kind": "zaimanhua",
        "method": "observed-json",
        "imageHosts": [
          "images.zaimanhua.com"
        ],
        "readerImageSelector": ".comic_wraCon img",
        "chapterEndpoint": "/api/v1/comic2/chapter/detail",
        "comicEndpoint": "/api/v1/comic2/comic/detail",
        "chapterDataField": "chapterInfo",
        "comicDataField": "comicInfo",
        "pagesField": "page_url",
        "chapterIdField": "chapter_id",
        "chapterBookField": "comic_id",
        "chapterTitleField": "title",
        "comicIdField": "id",
        "comicSlugField": "comicPy",
        "comicTitleField": "title",
        "catalogGroupsField": "chapterList",
        "catalogGroupTitleField": "title",
        "catalogItemsField": "data",
        "catalogItemIdField": "chapter_id",
        "catalogItemTitleField": "chapter_title",
        "bootstrap": "document-start",
        "snapshotField": "zaimanhua",
        "catalogRoute": "/details/{bookId}",
        "requestFields": [
          "channel",
          "app_name",
          "version"
        ],
        "chapterQuery": {
          "timestamp": "timestamp",
          "comic_id": "bookId",
          "chapter_id": "chapterId"
        },
        "comicQuery": {
          "timestamp": "timestamp",
          "id": "bookId"
        },
        "response": {
          "statusField": "errno",
          "success": 0,
          "dataField": "data",
          "canReadField": "canRead",
          "paidField": "isFee"
        },
        "coverFields": [
          "cover",
          "cover_url",
          "coverUrl",
          "comic_cover",
          "vertical_cover"
        ],
        "allowPendingImage": true,
        "catalogOrder": "newest-first"
      },
      "page": {
        "hash": "bmui-page"
      },
      "cover": {
        "selector": ".comic_deImg img, img.comic_deImg, .comic-cover img"
      }
    },
    {
      "schemaVersion": 1,
      "id": "copy",
      "label": "拷贝漫画",
      "version": 3,
      "engine": "structured",
      "match": {
        "origins": [
          "https://www.copy3000.com",
          "https://www.mangacopy.com",
          "https://www.copy4000.com"
        ],
        "routes": [
          "/comic/{bookSlug}/chapter/{chapterUuid}"
        ],
        "canonical": "/comic/{bookSlug}/chapter/{chapterUuid}"
      },
      "source": {
        "kind": "copy",
        "method": "aes-cbc-list",
        "allowMirrors": true,
        "ignoreRouteCase": true,
        "titleSeparator": "/",
        "imageHosts": [
          "*.mangafunb.fun"
        ],
        "readerImageSelector": ".comicContent-list img",
        "keyGlobal": "cct",
        "payloadGlobal": "contentKey",
        "catalogKeyGlobal": "ccz",
        "pageURLField": "url",
        "titleSelector": "h4.header",
        "currentPageSelector": ".comicIndex",
        "totalSelector": ".comicCount",
        "previousSelector": ".comicContent-prev:not(.index):not(.list) a",
        "nextSelector": ".comicContent-next a",
        "catalogBookField": "build.path_word",
        "catalogGroupsField": "groups",
        "catalogItemsField": "chapters",
        "catalogCountField": "count",
        "catalogGroupTitleField": "name",
        "catalogItemIdField": "id",
        "catalogItemTitleField": "name",
        "catalogRoute": "/comic/{bookSlug}",
        "catalogEndpoint": "/comicdetail/{bookSlug}/chapters",
        "catalogResponse": {
          "statusField": "code",
          "success": 200,
          "payloadField": "results"
        }
      },
      "page": {
        "hash": "bmui-page"
      },
      "cover": {
        "selector": ".comicParticulars-left-img img, .comicParticulars-left img, .comic-cover img"
      }
    }
  ]
}