69书吧

https://www.69shuba.com/

getpro (3764)2023/12/14

修复发现页

以下为cloudflare worker脚本代理目标域名:


addEventListener(

  "fetch", event => {

    event.respondWith(handleRequest(event.request));

  }

)


async function handleRequest(request) {

  let url = new URL(request.url);

  url.hostname = "www.69shuba.com"; // 修改成需要代理的域名或ip

  url.protocol = 'https'; // 如为http协议请修改为http

  let newRequest = new Request(url, request);


  // 发送请求并获取响应

  let response = await fetch(newRequest);


  let buffer = await response.arrayBuffer();


  // 将 ArrayBuffer 解码为文本(使用 GBK 解码)

  let responseBody = new TextDecoder("gbk").decode(buffer);


  // 替换文本内容中的 "www.69shuba.com" 为 空,使链接默认指向当前域名

  responseBody = responseBody.replace(/https:\/\/www\.69shuba\.com/g, "");


    // 创建新的响应并设置字符集为 UTF-8

    let newHeaders = new Headers(response.headers);

    newHeaders.set("Content-Type", "text/html; charset=utf-8");


  // 创建新的响应并返回

  return new Response(responseBody, {

    status: response.status,

    statusText: response.statusText,

    headers: newHeaders

  });

}

二维码导入
{
    "bookSourceComment": "",
    "bookSourceGroup": "",
    "bookSourceName": "69书吧",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/www.69shuba.com\/",
    "bookUrlPattern": "https:\/\/www.69shuba.com\/txt\/\\d+.htm",
    "customOrder": 0,
    "enabled": true,
    "enabledCookieJar": false,
    "enabledExplore": true,
    "exploreUrl": "[{\"title\":\"榜单\",\"url\":\"\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":1}},\n{\"title\":\"全部小说\",\"url\":\"\/novels\/weekvisit_0_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"总人气榜\",\"url\":\"\/novels\/weekvisit_0_2_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"总推荐榜\",\"url\":\"\/allvote_0_2_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"最近更新\",\"url\":\"\/newhot_0_2_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"新书热榜\",\"url\":\"\/newhot_0_1_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"全本小说\",\"url\":\"\/novels\/weekvisit_0_1_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"分类\",\"url\":\"\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":1}},\n{\"title\":\"玄幻魔法\",\"url\":\"\/novels\/weekvisit_1_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"修真武侠\",\"url\":\"\/novels\/weekvisit_2_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"言情小说\",\"url\":\"\/novels\/weekvisit_3_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"历史军事\",\"url\":\"\/novels\/weekvisit_4_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"游戏竞技\",\"url\":\"\/novels\/weekvisit_5_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"科幻空间\",\"url\":\"\/novels\/weekvisit_6_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"悬疑惊悚\",\"url\":\"\/novels\/weekvisit_7_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"同人小说\",\"url\":\"\/novels\/weekvisit_8_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"都市小说\",\"url\":\"\/novels\/weekvisit_9_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"官场职场\",\"url\":\"\/novels\/weekvisit_10_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"穿越时空\",\"url\":\"\/novels\/weekvisit_11_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}},\n{\"title\":\"青春校园\",\"url\":\"\/novels\/weekvisit_12_0_{{page}}.htm\",\"style\":{\"layout_flexGrow\":1,\"layout_flexBasisPercent\":0.25}}]",
    "header": "",
    "lastUpdateTime": 1701402937799,
    "loginUrl": "",
    "respondTime": 510,
    "ruleBookInfo": {
        "author": "[property$=author]@content",
        "coverUrl": "[property$=image]@content",
        "init": "",
        "intro": " ☁️ 更新:\n{{@@[property$=update_time]@content}}\n👻  简介:\n{{@@class.navtxt@p.0@html}}",
        "kind": "[property~=category|status|update_time]@content&&.infolist@li.1@text##节数",
        "lastChapter": "[property$=chapter_name]@content\n##\\d+\\.|(.*|\\(.*|【.*|(零|一|二|三|四|五|六|七|八|九|十|百|千|万)(.|\\s)*章|“|”\n@js:result\n.replace(\"••\",\"\")\n.replace(\/^(\\d+).第\/,'第')\n.replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\(\\{({【].*[求更谢乐发推票盟补加字Kk\\\/].*[\\)\\})}】]\/g,'')\n.replace(\/^(\\d+)[、.]第.+章\/,'第$1章')\n.replace(\/^(\\d+)、\\d+、\/,'第$1章 ')\n.replace(\/^(\\d+)、\\d+\/,'第$1章')\n.replace(\/^(第.+章)\\s?\\d+\/,'$1')\n.replace(\/^(\\d+)、\/,'第$1章 ')\n.replace(\/^(第.+章)\\s?第.+章\/,'$1')\n.replace(\/第\\s(.+)\\s章\/,'第$1章')\n.replace(\/.*(chapter|Chapter)\\s?(\\d+)\\s?\/,'$1 $2 ')\n.replace(\/\\(.+\\)\/,'')\n.replace(\/\\[|。\/,'')\n.replace(\/第([零一二三四五六七八九十百千]+)章\/g,java.toNumChapter(result))\n##(章)([^\\s]+)(\\s·)##$1 $2$3",
        "name": "[property$=book_name]@content",
        "tocUrl": "text.完整目录@href||class.btn more-btn@href##.*?com",
        "wordCount": ".infolist@li.0@textNodes"
    },
    "ruleContent": {
        "content": "class.txtnav@textNodes",
        "replaceRegex": "##{{book.durChapterTitle}}|.*作者:.*|\\(本章完\\)|PS:.*求推荐!|PS:.*求收藏!|.*第.*章.*|感谢.*打赏.*|感谢.*推荐票.*|感谢.*月票.*|(.*月票.*)|(为大家的.*票加更.*)|第二更在.*"
    },
    "ruleExplore": {
        "bookList": ""
    },
    "ruleReview": {},
    "ruleSearch": {
        "author": "tag.label.0@text",
        "bookList": "class.newbox@ul@li",
        "bookUrl": "a.0@href##.*?com",
        "coverUrl": "img@data-src",
        "intro": "ol@text",
        "kind": "tag.label.1@text&&tag.label.2@text",
        "lastChapter": "{{@@p.-1@textNodes}}・{{@@span.-2@text}}\n##\\d+\\.|(.*|\\(.*|【.*|(零|一|二|三|四|五|六|七|八|九|十|百|千|万)(.|\\s)*章|“|”\n@js:result\n.replace(\"••\",\"\")\n.replace(\/^(\\d+).第\/,'第')\n.replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\(\\{({【].*[求更谢乐发推票盟补加字Kk\\\/].*[\\)\\})}】]\/g,'')\n.replace(\/^(\\d+)[、.]第.+章\/,'第$1章')\n.replace(\/^(\\d+)、\\d+、\/,'第$1章 ')\n.replace(\/^(\\d+)、\\d+\/,'第$1章')\n.replace(\/^(第.+章)\\s?\\d+\/,'$1')\n.replace(\/^(\\d+)、\/,'第$1章 ')\n.replace(\/^(第.+章)\\s?第.+章\/,'$1')\n.replace(\/第\\s(.+)\\s章\/,'第$1章')\n.replace(\/.*(chapter|Chapter)\\s?(\\d+)\\s?\/,'$1 $2 ')\n.replace(\/\\(.+\\)\/,'')\n.replace(\/\\[|。\/,'')\n.replace(\/第([零一二三四五六七八九十百千]+)章\/g,java.toNumChapter(result))\n##(章)([^\\s]+)(\\s·)##$1 $2$3",
        "name": "h3@text"
    },
    "ruleToc": {
        "chapterList": "#catalog@ul@li@a",
        "chapterName": "text\n##\\d+\\.|(.*|\\(.*|【.*|(零|一|二|三|四|五|六|七|八|九|十|百|千|万)(.|\\s)*章|“|”\n@js:result\n.replace(\"••\",\"\")\n.replace(\/^(\\d+).第\/,'第')\n.replace(\/^(正文|VIP章节|最新章节)?(\\s+|_)|[\\(\\{({【].*[求更谢乐发推票盟补加字Kk\\\/].*[\\)\\})}】]\/g,'')\n.replace(\/^(\\d+)[、.]第.+章\/,'第$1章')\n.replace(\/^(\\d+)、\\d+、\/,'第$1章 ')\n.replace(\/^(\\d+)、\\d+\/,'第$1章')\n.replace(\/^(第.+章)\\s?\\d+\/,'$1')\n.replace(\/^(\\d+)、\/,'第$1章 ')\n.replace(\/^(第.+章)\\s?第.+章\/,'$1')\n.replace(\/第\\s(.+)\\s章\/,'第$1章')\n.replace(\/.*(chapter|Chapter)\\s?(\\d+)\\s?\/,'$1 $2 ')\n.replace(\/\\(.+\\)\/,'')\n.replace(\/\\[|。\/,'')\n.replace(\/第([零一二三四五六七八九十百千]+)章\/g,java.toNumChapter(result))\n##(章)([^\\s]+)(\\s·)##$1 $2$3",
        "chapterUrl": "href##.*?com"
    },
    "searchUrl": "https:\/\/www.69shuba.com\/modules\/article\/search.php,{\n  \"charset\":\"gbk\",\n  \"method\":\"POST\",\n  \"body\":\"searchkey={{key}}&searchtype=all\"\n}",
    "weight": 0
}
站长推荐
广告