Skip to content

Commit 777f368

Browse files
committed
pixiv
1 parent c6161ea commit 777f368

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

DownloadAllContent/DownloadAllContent.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @name:zh-TW 怠惰小説下載器
55
// @name:ja 怠惰小説ダウンローダー
66
// @namespace hoothin
7-
// @version 2.8.3.18
7+
// @version 2.8.3.19
88
// @description Lightweight web scraping script. Fetch and download main textual content from the current page, provide special support for novels
99
// @description:zh-CN 通用网站内容爬虫抓取工具,可批量抓取任意站点的小说、论坛内容等并保存为TXT文档
1010
// @description:zh-TW 通用網站內容爬蟲抓取工具,可批量抓取任意站點的小說、論壇內容等並保存為TXT文檔
@@ -1536,10 +1536,10 @@ if (window.top != window.self) {
15361536

15371537
function getPageContent(doc, cb, url){
15381538
if(!doc)return i18n.error;
1539-
if(doc.body && !doc.body.children.length)return doc.body.innerText;
15401539
if(processFunc){
15411540
return processFunc(doc, cb, url);
15421541
}
1542+
if(doc.body && !doc.body.children.length)return doc.body.innerText;
15431543
[].forEach.call(doc.querySelectorAll("span,div,ul"),function(item){
15441544
var thisStyle=doc.defaultView?doc.defaultView.getComputedStyle(item):item.style;
15451545
if(thisStyle && (thisStyle.display=="none" || (item.nodeName=="SPAN" && thisStyle.fontSize=="0px"))){

DownloadAllContent/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@
104104
``` javascript
105105
main>section ul>li div>a@@@@@@var noval=JSON.parse(doc.querySelector("#meta-preload-data").content).novel;noval[Object.keys(noval)[0]].content;
106106
```
107+
新規則
108+
``` javascript
109+
main>section ul>li div>a@@novel/show\.php\?id=@@ajax/novel/@@data.json().body.content;
110+
```
107111
+ [📕紅薯中文網](https://g.hongshu.com/chapterlist/91735.do)
108112
> 這個站沒有目錄連結,此時可以遍歷標籤自己創建目錄連結下載
109113
``` javascript

0 commit comments

Comments
 (0)