Skip to content

Commit a2fc4a5

Browse files
authored
Update README.md
1 parent fc4c318 commit a2fc4a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DownloadAllContent/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
+ [📕po18](https://www.po18.tw/books/755779/articles)
8787
> 章節的選擇器為 `.l_chaptname>a` ,輸入並下載後發現通過 url 無法下載正文內容,正文是 ajax 通過 articlescontent 下載的。此時可後接 `@@articles@@articlescontent` (@@ 分隔) 將章節 url 中的 articles 替換為 articlescontent 。 `.l_chaptname>a@@articles@@articlescontent` 粘貼進命令菜單即可下載。其中第一個 articles 可使用正則,例如 `@@articles(\d+)@@$1content` 代表將連結中的「articles1」「articles2」等替換為「1content」「2content」。
8888
``` css
89-
.l_chaptname>a @@ articles @@ articlescontent
89+
.l_chaptname>a@@articles@@articlescontent
9090
```
9191
> 如果需要下載已購買的vip章節,用這個規則
9292
``` javascript
@@ -95,7 +95,7 @@
9595
+ [📕pixiv](https://www.pixiv.net/novel/series/7807554)
9696
> p站小說的章節選擇器為`main>section ul>li div>a`,無需替換連結,因此後兩項留空。有6個@了 😂。正文在meta裡,需要自定義代碼提取meta-preload數據的content項。其中 "doc" 代表抓取網頁的document對象,若返回的是純文本,則用 `doc.body.innerText` 獲取。
9797
``` javascript
98-
main>section ul>li div>a @@@@@@ var noval=JSON.parse(doc.querySelector("#meta-preload-data").content).novel;noval[Object.keys(noval)[0]].content;
98+
main>section ul>li div>a@@@@@@var noval=JSON.parse(doc.querySelector("#meta-preload-data").content).novel;noval[Object.keys(noval)[0]].content;
9999
```
100100
+ [📕紅薯中文網](https://g.hongshu.com/chapterlist/91735.do)
101101
> 這個站沒有目錄連結,此時可以遍歷標籤自己創建目錄連結下載

0 commit comments

Comments
 (0)