Skip to content

Commit

Permalink
独阅读的域名变更,对其进行了修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Seraphoenixy authored and yingziwu committed Jul 18, 2023
1 parent b115b4d commit b4965aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ EPUB 文件请使用相应阅读器阅读。
| [寒武纪年原创网](https://www.hanwujinian.com/) ||| |
| [哔哩哔哩漫画](https://manga.bilibili.com/) ||| |
| [息壤中文网](https://www.xrzww.com/) ||| |
| [独阅读](https://www.duread8.com/) ||| |
| [独阅读](https://www.duread.cn/) ||| |
| [轻之文库轻小说](https://www.linovel.net/) ||| VIP 章节仅支持 APP 查看 |
| [纵横中文网](http://www.zongheng.com/) ||| |
| [花语女生网](http://huayu.zongheng.com/) ||| |
Expand Down
4 changes: 2 additions & 2 deletions src/header.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"*://www.xyb3.net/5200/*/",
"*://hongxiuzhao.me/*.html",
"*://www.mijiashe.com/*/",
"*://www.duread8.com/book/*",
"*://www.duread.cn/book/*",
"*://www.ttkan.co/novel/chapters/*",
"*://cn.ttkan.co/novel/chapters/*",
"*://tw.ttkan.co/novel/chapters/*",
Expand Down Expand Up @@ -342,7 +342,7 @@
"readmoo.com",
"qingoo.cn",
"sundung.com",
"duread8.com",
"duread.cn",
"ttkan.co",
"bg3.co",
"xiaoshuowanben.com",
Expand Down
2 changes: 1 addition & 1 deletion src/router/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export async function getRule(): Promise<BaseRuleClass> {
ruleClass = Iqingguo;
break;
}
case "www.duread8.com": {
case "www.duread.cn": {
const { Duread } = await import("../rules/special/original/ciweimao");
ruleClass = Duread;
break;
Expand Down
4 changes: 2 additions & 2 deletions src/rules/special/original/ciweimao.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export class Duread extends BaseRuleClass {
charset: string,
options: object
) {
const rootPath = "https://www.duread8.com/";
const rootPath = "https://www.duread.cn/";
const [parentWidth, setFontSize] = [939.2, "18"];
return getChapter({
chapterUrl,
Expand Down Expand Up @@ -523,7 +523,7 @@ function getChapter({
}

const getIsLogin = () => {
if (document.location.host === "www.duread8.com") {
if (document.location.host === "www.duread.cn") {
return (
document.querySelector("div.dropdown-menu")?.childElementCount === 3
);
Expand Down

0 comments on commit b4965aa

Please sign in to comment.