Project Icon

nhentai-helper

nHentai漫画助手,简化下载和浏览流程

nhentai-helper是一款为nHentai网站开发的用户脚本,旨在优化漫画浏览和下载体验。该脚本提供一键下载漫画为zip或cbz格式、下载队列管理、已下载内容自动标记等核心功能。此外,它还支持自定义压缩文件命名、多线程下载加速、多个nHentai镜像站点兼容、语言过滤和100%视图高度等特性。这些功能共同作用,显著提升了用户在nHentai平台上的使用体验。

nHentai Helper

中文说明

GitHub

Support Tampermonkey and Violentmonkey. Not and will not support Greasemonkey.

Installation

Via Greasy Fork (login required due to adult content)

Via Sleazy Fork (no login required)

Via GitHub Pages

Main features

  • You can download manga as zip (or cbz). You must keep the page in the foreground when downloading.
  • You will be warned when you are going to download an already downloaded manga.
  • For manga list page:
    • Add pjax support. Changing pages will not interrupt downloads.
    • Download queue support.
    • The caption of downloaded manga will be marked with grey color.

preview1

preview2

Settings

settings

  • 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.

  • Compression filename
    Default is {{japanese}}.zip. You can custom the naming of downloaded compression file, including the file extension, such as {{english}}.cbz.
    If the compressed filename contains illegal characters, they will be automatically replaced with spaces. You can also use the Title replacement setting to perform custom replacement.
    Available placeholders:

    • {{english}} - English name of manga
    • {{japanese}} - Japanese name of manga
    • {{pretty}} - English simple title of manga
    • {{id}} - Gallery ID
    • {{pages}} - Number of pages
    • {{artist}} - Artist tags of manga
      • Maximum number: The default is 3, exceeding will become "various". Can be modify in settings. 0 means infinity.
      • Separator: The default is , . Can be modify in settings.
  • Compression level
    Accept a number in 0-9, default is 0.
    0 means "no compression", 1 means "best speed", 9 means "best compression".
    Actually, for manga, compression output size of 0 and 9 usually differ by less than 1%.

  • Filename length
    Zeros will be padded to the start of image filename when its length lower than the value you specified. This can avoid the sorting confusion caused by sorting only by string in some cases.

  • Auto cancel downloaded manga
    When you are going to download an already downloaded manga, it will be canceled automatically instead of pop-up a confirmation box.

  • Auto retry when error occurs
    Automatically retry when an error occurs, instead of pop-up a confirmation box.

  • Auto show all
    Help you to click the "Show all" button on manga detail page automatically.

  • Show ignore button
    Show an button that allow you to mark or unmark the manga as downloaded.

  • Context menu preview
    Able to preview information and thumbnails directly by right click a manga on manga list page.

  • Judge downloaded manga by title
    You can specify the title used to judge whether the manga has been downloaded. If nothing selected, the script will never warn you when a manga has been downloaded.
    Note that Pretty is not available in most mirror sites.

  • Add metadata file
    These metadata files are currently supported:

    If you choose to add ComicInfo.xml, you need to specify the title language (english or japanese).

Advance Settings

  • nHentai download host
    Choose a host for downloading nHentai images. Only available on nHentai.

  • Custom download URL
    Generally, you don't need to provide this unless you have a special requirement or the script cannot automatically obtain the image URL on the mirror site.
    Provide a URL containing the following placeholder:

    • {{mid}} - Media ID
    • {{index}} - Page index, starting from 1
    • {{ext}} - Image file extension

    For example, if the image URL you find is like https://example.com/galleries/123456/1.jpg
    Then the custom download URL is usually https://example.com/galleries/{{mid}}/{{index}}.{{ext}}

  • Compression "streamFiles"
    Enable this option will use less memory but some program might not support the generated zip file.
    See here for more information.

  • Series mode
    Enable this option will make downloading and compression become series tasks but not parallel to reduce memory usage.
    If RangeError: Array buffer allocation failed occurs frequently, you can try to enable it.

  • Stream download
    Use StreamSaver.js to download zip stream to reduce memory usage.
    But this not work on Safari and Firefox, and the download process is extremely slow. So not recommended unless you really have memory usage issues.

  • Prevent console clearing
    Only available on nHentai official site. It is useful when you need to submit console log for debugging.

  • Title replacement
    Character replacement can be performed on the title in the compressed filename, and regular expressions are supported.

Other features

nHentai mirror sites support

This script also support some nHentai mirror sites. See the script's @match and @include.

If the script does not run on some domains, you can add them to User matches. (Script editing - Settings - Includes/Excludes - User matches)

Not all mirror sites are supported. The script only supports sites that use the same UI as the nHentai official site (page structure and element class names are basically the same).

When you are on a mirror site, a prompt "A userscript wants to access a cross-origin resource" may pop up, please select "Always allow domain" or "Always allow all domain".

connect

Language filter

You can select a language in the navigation bar to filter manga.

langFilter

100% view height

Effective when reading online, only for mirror sites (now nHentai official site already has this feature).

viewMode

Recommended scripts

  • Super-preloader
    A userscript for auto loading paginated web pages. It will join pages together, which is useful on manga list page.
项目侧边栏1项目侧边栏2
推荐项目
Project Cover

豆包MarsCode

豆包 MarsCode 是一款革命性的编程助手,通过AI技术提供代码补全、单测生成、代码解释和智能问答等功能,支持100+编程语言,与主流编辑器无缝集成,显著提升开发效率和代码质量。

Project Cover

AI写歌

Suno AI是一个革命性的AI音乐创作平台,能在短短30秒内帮助用户创作出一首完整的歌曲。无论是寻找创作灵感还是需要快速制作音乐,Suno AI都是音乐爱好者和专业人士的理想选择。

Project Cover

有言AI

有言平台提供一站式AIGC视频创作解决方案,通过智能技术简化视频制作流程。无论是企业宣传还是个人分享,有言都能帮助用户快速、轻松地制作出专业级别的视频内容。

Project Cover

Kimi

Kimi AI助手提供多语言对话支持,能够阅读和理解用户上传的文件内容,解析网页信息,并结合搜索结果为用户提供详尽的答案。无论是日常咨询还是专业问题,Kimi都能以友好、专业的方式提供帮助。

Project Cover

阿里绘蛙

绘蛙是阿里巴巴集团推出的革命性AI电商营销平台。利用尖端人工智能技术,为商家提供一键生成商品图和营销文案的服务,显著提升内容创作效率和营销效果。适用于淘宝、天猫等电商平台,让商品第一时间被种草。

Project Cover

吐司

探索Tensor.Art平台的独特AI模型,免费访问各种图像生成与AI训练工具,从Stable Diffusion等基础模型开始,轻松实现创新图像生成。体验前沿的AI技术,推动个人和企业的创新发展。

Project Cover

SubCat字幕猫

SubCat字幕猫APP是一款创新的视频播放器,它将改变您观看视频的方式!SubCat结合了先进的人工智能技术,为您提供即时视频字幕翻译,无论是本地视频还是网络流媒体,让您轻松享受各种语言的内容。

Project Cover

美间AI

美间AI创意设计平台,利用前沿AI技术,为设计师和营销人员提供一站式设计解决方案。从智能海报到3D效果图,再到文案生成,美间让创意设计更简单、更高效。

Project Cover

AIWritePaper论文写作

AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。

投诉举报邮箱: service@vectorlightyear.com
@2024 懂AI·鲁ICP备2024100362号-6·鲁公网安备37021002001498号