nHentai Helper
Also support NyaHentai.
Support Greasemonkey, Tampermonkey and Violentmonkey (by @z2n).
Main features
- You can download doujin as ZIP (CBZ).
- Add pjax support on dojin list page. Turning pages will not interrupt downloads.
- Download queue support on dojin list page. It will warn you when you download a doujin which was already downloaded, even they were uploaded by different people but are the same doujin. Up to 500 history records.
Setting
- Download Thread
If you think the download speed is too slow, you can try to increase the number of download threads from this setting.
- Open On New Tab
Gallery page will be open on a new window by default, turn off it if you don't like it.
- Custom Download URL
WARNING: Please don't set this if you don't know what it does.
Tip: You may need to add your domain into XHR security for this script.
Provide a string containing the following placeholder:
{{mid}}
- Media ID
{{index}}
- Page index, starting from 1
{{ext}}
- Image file extension
- Compression File Extension
Default is zip
. You can custom it, such as cbz
.
- Compression Level
Accept a numer in 0-9
, default is 0
.
0
means "no compression", 1
means "best speed", 9
means "best compression".
Actually, for doujin, compression output size of 0
and 9
usually differ by less than 1%.
Other features
Language filter
You can select a language in the navigation bar to filter doujins.
100% view height
Effective when reading online.
Removing console shielding of nhentai
* Not work when using Violentmonkey.
Too lazy to translate all of them :(
有尝试为 nhentai 开发脚本的朋友应该也会头疼这个问题,nhentai 会不停的执行console.clear
,即使你console.clear=()=>{}
,也仍然会每秒 log 出一个<div></div>
,很是烦人
在我刚开始开发这个脚本的时候我的解决方法非常暴力,将那个罪魁祸首 js 下载一份传到我自己的服务器上,删掉里面调用了console
的代码,然后用重定向插件进行重定向,这样可以保证不会破坏console
但该 js 也会时不时更新,我也得重新更新,虽然更新频率很低,总归是很麻烦的
于是我还是决定使用一劳永逸的方法,这一方法你可以在脚本源码开头看到,因为其会对console
进行一些破坏性的改动,因此我在这里进行专门说明
You just need to pay attention to these:
- If you want to use
console.clear
, please use console._clear
instead.
- If you want to
console.log
a Node
or HTMLElement
, please use console._log
or console.info
instead.