🍁偶然中文🔸验证码

https://m.qu7.net

xuebI503 (13974)22小时前

/*
	20230724 更新验证码获取逻辑,获取一次正确的验证码后,一段时间内无需再次获取-尐哖
 20230723 修改发现为动态获取-尐哖
	可以手动切换
	改变源URL地址,网站就会切换
	下面套娃网站(m和www通用)
	希望中文:https://m.92sr.com/
	123读书:https://m.123du.vip
	滨州书站:https://m.binzhousz.com
	偶然中文:https://m.or7.net
	趣七屋:https://m.qu7.net
	博趣中文:https://m.1bqg.net
	洪都中文:https://m.nchdzx.com
	我来读:https://m.wolaido.com
	齐齐读:https://m.qiqidu.net
 博看:https://m.bokank.com
 二品中文:https://m.2pzw.com
*/
try{
	c2=result.match(/c2="(.*?)"/)[1]
	u2=result.match(/src="(.*?)"/)[1]
	origin=baseUrl.match(/[^.]+[^/]+/)[0]
	str=java.ajax(origin+u2).match(/function.*\(\)\}/)[0]
	eval(str);temp=ajax(c2)
	java.ajax(origin+temp)
 if(baseUrl.match(/sscc/)){
 	u=java.get("url")}else{u=baseUrl}
 	//java.log(u)
	result=java.ajax(u)
}catch(err){result}
二维码导入
{
    "bookSourceComment": "\/*\n\t20230724 更新验证码获取逻辑,获取一次正确的验证码后,一段时间内无需再次获取-尐哖\n 20230723 修改发现为动态获取-尐哖\n\t可以手动切换\n\t改变源URL地址,网站就会切换\n\t下面套娃网站(m和www通用)\n\t希望中文:https:\/\/m.92sr.com\/\n\t123读书:https:\/\/m.123du.vip\n\t滨州书站:https:\/\/m.binzhousz.com\n\t偶然中文:https:\/\/m.or7.net\n\t趣七屋:https:\/\/m.qu7.net\n\t博趣中文:https:\/\/m.1bqg.net\n\t洪都中文:https:\/\/m.nchdzx.com\n\t我来读:https:\/\/m.wolaido.com\n\t齐齐读:https:\/\/m.qiqidu.net\n 博看:https:\/\/m.bokank.com\n 二品中文:https:\/\/m.2pzw.com\n*\/\ntry{\n\tc2=result.match(\/c2=\"(.*?)\"\/)[1]\n\tu2=result.match(\/src=\"(.*?)\"\/)[1]\n\torigin=baseUrl.match(\/[^.]+[^\/]+\/)[0]\n\tstr=java.ajax(origin+u2).match(\/function.*\\(\\)\\}\/)[0]\n\teval(str);temp=ajax(c2)\n\tjava.ajax(origin+temp)\n if(baseUrl.match(\/sscc\/)){\n \tu=java.get(\"url\")}else{u=baseUrl}\n \t\/\/java.log(u)\n\tresult=java.ajax(u)\n}catch(err){result}",
    "bookSourceGroup": "我的",
    "bookSourceName": "🍁偶然中文🔸验证码",
    "bookSourceType": 0,
    "bookSourceUrl": "https:\/\/m.qu7.net",
    "bookUrlPattern": "https?:\\\/\\\/[wm]+\\.(5xw|2pzw|123du|binzhousz|or7|qu7|1bqg|nchdzx|wolaidu|cnyxfs)\\.(com|net|vip)\\\/[\\da-z-]+\\\/\\d+\\\/?",
    "customButton": false,
    "customOrder": 243,
    "enabled": true,
    "enabledCookieJar": true,
    "enabledExplore": true,
    "eventListener": false,
    "exploreUrl": "@js:\n sort=[];\n push=(title,url,type)=>sort.push({\n\t\ttitle: title,\n\t\turl: url,\n\t\tstyle: {\n\t\t\t\tlayout_flexGrow: 1,\n\t\t\t\tlayout_flexBasisPercent: type\n\t\t\t}\n\t});\n\tu=source.getKey();\n\turl=u+\"\/menu.html\";\n\tD=org.jsoup.Jsoup.parse(java.ajax(url));\n\tA=D.select('div[class=\"divmen\"] a');\n\tfor(i in A){\n\t\tif(i!=0&&i!=4&&i!=5){\n\t\t\tpush(A[i].text(),A[i].attr(\"href\"),\"0.25\")\n\t\t}\n\t}\n\tJSON.stringify(sort);\n",
    "header": "@js:\nJSON.stringify({\n\"User-Agent\": java.getWebViewUA()\n})",
    "lastUpdateTime": "1781760949735",
    "respondTime": 7854,
    "ruleBookInfo": {
        "author": "class.b0@tag.span.0@text##作者:",
        "coverUrl": "class.b0@img@src",
        "intro": "[property~=description]@content",
        "kind": "[property~=category|status|time]@content##.\\d{2}:.*",
        "lastChapter": "class.b0@dd.-1@a@text\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": "class.FCol.0@text",
        "tocUrl": "class.nrbt@tag.a.0@href"
    },
    "ruleContent": {
        "content": "<js>\nif(result.match(\/<title>\\d+<\/)){\ncookie.removeCookie(baseUrl)\nresult=java.ajax(baseUrl)\n}\neval(String(source.bookSourceComment))\n\nif (result.includes(\"请输入验证码\")) {\n\ntry{\n\tactyzm=result.match(\/rdyzm\" value=\"([^\"]+)\"\/)[1];\n\tjava.log(actyzm)\n\tbutton=result.match(\/button\" value=\"([^\"]+)\"\/)[1];\t\n\t\n\turl=baseUrl;\n\tcode=source.key+\"\/member\/getcode.asp\";\n\tyzco=source.getVariable();\n\tfunction getOption(str,co){\n \thed={\"Referer\":url,\"Cookie\":co}\n \treturn JSON.stringify({\"method\":\"POST\",\n\"charset\":\"gb2312\",\"body\":\"rdyzm=\"+actyzm+\"&yzm=\"+str+\"&button=\"+button,\"headers\":hed});\n }\n function succes(){\n\t\tyzm=java.getVerificationCode(code);\n\t\turl+=\",\"+getOption(yzm,\"\");\n\t\thm=java.ajax(url);\n\t\tco=java.getCookie(url,\"g3jy9sqo0ws\");\n source.setVariable(yzm+',g3jy9sqo0ws='+co)\n return hm;\n }\n\tif(yzco&&yzco!=''){\n\t\tv=String(yzco).split(',');\n\t\tu=url+\",\"+getOption(v[0],v[1]);\n\t\tresult=java.ajax(u);\n\t\tif(\/请输入验证码\/.test(result)){\n\t\t\tjava.longToast(\" !验证码过期或有误,重新获取 !\")\n\t\t\tresult=succes();\n\t\t}\n\t}else{result=succes(\"\");}\nresult\n}catch(err){java.log(err);result}\n\n}\n\ncc=String(cookie.getCookie(baseUrl)).replace(\/\\%2C[^;]+\/g,\"\")\ncookie.setCookie(baseUrl,cc)\njava.setContent(result)\nresult\n<\/js>\n#content@html||[class~=(?i)content]@html",
        "nextContentUrl": "text.下—页@href||text.下一页@href",
        "replaceRegex": "##\\s+\"\\n|\\s+本章(没|未)完,.*|(\\.\\n)?.*看完记得收藏.*|\\s+\\\/\\d+\\\/.*|\\s+。:.*|\\s+:。.*"
    },
    "ruleExplore": {
        "author": "text.作者:@text##作者:",
        "bookList": "dl[class=\"B\"]&&dl[class=\"S\"]",
        "bookUrl": "a.0@href",
        "coverUrl": "img@src",
        "intro": ".d2@text##简介:",
        "kind": "{{@@span:contains(类别:)@text##^类别:}}\n{{@@dd:contains(更新时间:)@text##.*更新时间:}}",
        "lastChapter": "{{@@dd.-1@a@text}} • {{@@class.ml@text||dd.-2@text##更新时间:|\\s.*}}",
        "name": "a.1@text||a.0@text"
    },
    "ruleSearch": {
        "author": "text.作者:@text##作者:",
        "bookList": "<js>\neval(String(source.bookSourceComment))\ntry{\n\tactyzm=result.match(\/actyzm\" value=\"([^\"]+)\"\/)[1];\n\tbutton=result.match(\/button\" value=\"([^\"]+)\"\/)[1];\t\n\turl=java.get(\"url\");\n\tcode=String(url).replace(\/\\\/sscc.*\/,'')+\"\/member\/getcode.asp\";\n\tyzco=source.getVariable();\n\tfunction getOption(str,co){\n \thed={\"Referer\":url,\"Cookie\":co}\n \treturn JSON.stringify({\"method\":\"POST\",\n\"charset\":\"gb2312\",\"body\":\"actyzm=\"+actyzm+\"&yzm=\"+str+\"&button=\"+button,\"headers\":hed});\n }\n function succes(){\n\t\tyzm=java.getVerificationCode(code);\n\t\turl+=\",\"+getOption(yzm,\"\");\n\t\thm=java.ajax(url);\n\t\tco=java.getCookie(url,\"g3jy9sqo0ws\");\n source.setVariable(yzm+',g3jy9sqo0ws='+co)\n return hm;\n }\n\tif(yzco&&yzco!=''){\n\t\tv=String(yzco).split(',');\n\t\tu=url+\",\"+getOption(v[0],v[1]);\n\t\tresult=java.ajax(u);\n\t\tif(\/请输入验证码\/.test(result)){\n\t\t\tjava.longToast(\" !验证码过期或有误,重新获取 !\")\n\t\t\tresult=succes();\n\t\t}\n\t}else{result=succes(\"\");}\nresult\n}catch(err){java.log(err);result}\n<\/js>\n.B",
        "bookUrl": "a.0@href",
        "checkKeyWord": "我的模拟长生路",
        "coverUrl": "img@src",
        "intro": ".d2@text##简介:",
        "kind": "class.js@text##类别:|\\\/ 作者.*\\s.*",
        "lastChapter": "{{@@dd.-1@a@text}} • {{@@class.ml@text##更新时间:}}\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": "a.1@text",
        "wordCount": "@js:\ntry{\t\ncc=String(cookie.getCookie(baseUrl)).replace(java.get(\"key\"),\"\")\ncookie.setCookie(baseUrl,cc)\n}catch(e){\"\"}"
    },
    "ruleToc": {
        "chapterList": "\/\/*[@class=\"MLlist\"]\/li\/a||\/\/dt[-1]\/following-sibling::dd\/a",
        "chapterName": "text\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"
    },
    "searchUrl": "@js:\ntry{\nbUrl=baseUrl.replace(\/\\\/?\\#\\#.*\/,'');\ncookie.removeCookie(bUrl)\ns=String(java.ajax(bUrl))\nact=s.match(\/\"act\".*?\"(.{16})\"\/)[1]\nsub=s.match(\/name=\"submit\".*?value=\"(.*?)\"\/)[1]\nbody=String(\"act=\"+act+\"&q=\"+key+\"&submit=\"+sub)\nxx=body.match(\/[^&=]+\/g)\nfor(i in xx){\nre=java.encodeURI(xx[i],\"gbk\")\nbody=body.replace(xx[i],re)\n }\nvar url=String(bUrl+\"\/sscc\/,\"+JSON.stringify({\n\t\"method\":\"POST\",\"body\":body}))\njava.put(\"key\",body.match(\/q=([^&]*)\/)[1]);\njava.put(\"url\",bUrl+\"\/sscc\/\"+java.post(bUrl+\"\/sscc\/\",body,{}).header(\"Location\"));\nurl\n}catch{java.longToast(\"获取失败\")}",
    "weight": 0
}
广告