forked from 404-novel-project/novel-downloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
42bb0d8
commit 3dbe735
Showing
8 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { rm, rms } from "../../lib/dom"; | ||
import { mkRuleClass } from "./template"; | ||
|
||
export const boqugew = () => | ||
mkRuleClass({ | ||
bookUrl: document.location.href, | ||
bookname: ( | ||
document.querySelector("h1.bookTitle") as HTMLHeadElement | ||
).innerText.trim(), | ||
author: ( | ||
document.querySelector("p.booktag > a:first-child") as HTMLAnchorElement | ||
).innerText.replace(/作(\s+)?者[::]/, "").trim(), | ||
introDom: document.querySelector("p#bookIntro") as HTMLElement, | ||
introDomPatch: (introDom) => introDom, | ||
coverUrl: (document.querySelector("img.img-thumbnail") as HTMLImageElement).src, | ||
aList: document.querySelectorAll("div#list-chapterAll > dl > dd > a"), | ||
getContent: (doc) => doc.querySelector("div#htmlContent") as HTMLElement, | ||
contentPatch: (content) => { | ||
rms([ | ||
"记住网址m.boqugew.com", | ||
"一秒记住http://m.boqugew.com", | ||
"首发网址http://m.boqugew.com" | ||
], content); | ||
rm("br", true, content); | ||
return content; | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { mkRuleClass } from "./template"; | ||
|
||
export const qbtrcc = () => | ||
mkRuleClass({ | ||
bookUrl: document.location.href, | ||
bookname: ( | ||
document.querySelector("div.infos > h1") as HTMLHeadElement | ||
).innerText.trim(), | ||
author: ( | ||
document.querySelector("div.infos > div.date > span") as HTMLAnchorElement | ||
).innerText.replace("作者:", "").trim(), | ||
introDom: document.querySelector("div.infos > p") as HTMLElement, | ||
introDomPatch: (introDom) => introDom, | ||
coverUrl: "https://www.qbtr.cc/skin/default/images/bbb2.png", | ||
aList: document.querySelectorAll("ul.clearfix > li > a"), | ||
getContent: (doc) => doc.querySelector("div.read_chapterDetail") as HTMLElement, | ||
contentPatch: (content) => content, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters