Greasy Fork is available in English.

DownloadAllContent

Lightweight web scraping script. Fetch and download main textual content from the current page, provide special support for novels

< Valutazione su DownloadAllContent

Recensione: Bene - lo script funziona

§
Pubblicato: 28/09/2022

您好,十分感谢分享这插件。但能麻烦作者能分享一下这种网站的下载模板吗,之前分享的几个模板都不起作用。
http://www.zhainanxs.com/

hoothinAutore
§
Pubblicato: 28/09/2022

#list-chapterAll>dd>a>>item.href=item.href.replace(/.*gobook\('(\d+)','(\d+)'\).*/,"/go/$1/$2.html");return item;

§
Pubblicato: 29/09/2022

太感谢了

§
Pubblicato: 29/09/2022

麻烦再问一个问题,文章中的内页如何解决呢?麻烦再解决一下。实在是感谢

hoothinAutore
§
Pubblicato: 30/09/2022
Modificato: 30/09/2022
#list-chapterAll>dd>a>>item.href=item.href.replace(/.\*book\('(\d+)','(\d+)'\).\*/,"/go/$1/$2.html");return item;@@@@@@let content=data.querySelector('h1~div');if(!content)return data.body.innerText;content.innerHTML=content.innerHTML.replace(/<br>/g,"\n");content=content.innerText;let pages=data.querySelectorAll(".chapterPages>a:not(.curr)");if(pages){let num=pages.length,cur=0;content=[content];[].forEach.call(pages, (page,i)=>{let url=page.href.replace(/.\*'(\d+)','([\d\_]+)'.\*/,"/go/$1/$2.html");fetch(url).then(r => r.text()).then(d => {let doc = document.implementation.createHTMLDocument(''); doc.documentElement.innerHTML = d;let c=doc.querySelector('h1~div');if(c){c.innerHTML=c.innerHTML.replace(/<br>/g,"\n"); content[i+1]=c.innerText;if(++cur>=num)cb(content.join("\n"));} }); });return false;}return content;

可以下载,但是缺字。去用小说下载器吧,那个脚本可以下载图片

§
Pubblicato: 30/09/2022

多谢

Pubblica risposta

Accedi per pubblicare una risposta.