☰

Sleazy Fork is available in English.

Better Ehentai Interface

Screen fitting, in-page navigation, next-page preloading, page jumps and left-click back. English / Chinese interface.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
Ue Mask
Dnevne instalacije
2
Ukupno instalacija
2
Ocene
1 0 0
Verzija
2.1.0
Napravljeno
04. 10. 2026
Ažurirano
04. 10. 2026
Size
56,2 КБ
Licenca
MIT
Važi za
All sites

Better Ehentai Interface

Version: 2.1.0

A desktop userscript for EH / EX readers with screen fitting, in-page navigation, configurable preloading and page-number jumps. Supports single-page readers and the native MPV reader, with an English / Chinese interface.

Features

Fit page or fit width

Fit the whole image inside the available reading area while preserving its aspect ratio. Switch to Fit width for long strips that you want to scroll vertically.

Image sizing adjusts when the window or fullscreen state changes.

Navigate without reloading the reader

With In-page navigation enabled, previous / next controls, supported native page links and page-number jumps update the current reader.

Fullscreen stays active while changing pages.

Click the left half to go back

Click the left half of a fitted page image to return to the previous page. Clicking the left half of the first page keeps you on that page.

This feature is enabled by default and has its own setting. The right half retains the original image link’s behavior.

Preload upcoming pages

Choose how many pages to preload ahead: 0–20, with 3 as the default. Set it to 0 to disable preloading.

Images are loaded and decoded ahead of navigation. MPV uses the site’s existing image loader.

Background preloading is limited to two concurrent jobs. A preload failure stops further queued jobs in that batch, while manual navigation remains available.

Jump directly to a page

Enter a page number and press Enter or click Jump.

The single-page reader locates distant pages through the gallery’s thumbnail lists when necessary.

Return to the gallery with one Back action

In-page navigation keeps page turns within one reader history entry. Press the browser’s Back button once, or click Gallery, to return to the gallery details page.

A gallery history entry is also prepared when opening a reader link directly.

Adjust the reading area

Enable a black reading background, allow small images to upscale, and change the margin around the image.

Disable fit restores the site’s layout and image sizing and stops the script’s preload queue.

English / Chinese interface

Switch languages from the first row of Settings. Buttons, settings, status messages and userscript menu commands update together.

The language choice is remembered across supported sites and reader modes.

Settings

Setting Default Function
Language Browser language on first use Choose English or 中文; subsequent visits use your saved choice.
Display Fit page Choose whole-page fitting or width fitting.
Black background On Use a black reading background in EH / EX readers.
Upscale small images On Allow smaller images to expand to fit the available area.
Margin (px) 8 Set the image margin from 0 to 80 pixels.
In-page navigation On Change EH / EX pages within the current reader.
Click left for previous On Use the left half of the image to return to the previous page.
Preload (pages) 3 Preload 0–20 upcoming pages; requires in-page navigation.

Reading settings are stored separately for each site and reader mode. The language preference is shared across them.

Controls

Action Control
Previous / next page Toolbar buttons, or ← / → in EH / EX with in-page navigation enabled
Previous page Click the left half of the page image
Jump to a page Enter a page number, then Enter or Jump
Toggle fitting Alt + Shift + M
Fullscreen Fullscreen button
Exit fullscreen / cancel image picking Esc
Return to gallery Gallery button or browser Back

Supported readers

Dedicated support covers the single-page and MPV readers on:

  • e-hentai.org
  • exhentai.org

On other websites, open the userscript menu and choose Fit: settings / pick image, then click a loaded comic image to select its reading area.

Generic mode supports image fitting, fullscreen and navigation among images already loaded in that area. Network preloading, EH-style in-page replacement and gallery-return behavior require a site-specific adapter.

nhentai.net is excluded from this script.

Performance

Version 2.1.0 reduces repeated work in MPV:

  • Combines scroll handling within animation frames.
  • Locates the current page without measuring every page on each scroll event.
  • Uses image-loading events instead of periodic polling.
  • Reads dimensions before applying image styles and skips unchanged styles.
  • Limits EH / EX change monitoring to the reading area.

In a local 300-page MPV test, a burst of 100 scroll events reduced page-position reads from 30,300 to 11, with both versions locating the same page.

This measures layout work in the test reader. Live results also depend on the browser, page structure and image sizes.

Installation and updates

  1. Install Tampermonkey.
  2. Install this userscript and refresh an EH / EX reading page.
  3. Open Settings in the lower-right corner to adjust language, display mode and preloading.

For a manual update, replace the code in the existing userscript entry and save it to retain its stored preferences.

Requests and storage

The script has no external library dependencies or analytics.

Navigation and preloading request the current gallery’s reader pages, thumbnail lists and images as needed, using your existing site session. Preferences are stored in your userscript manager.

What’s new in 2.1.0

  • Renamed to Better Ehentai Interface.
  • Added English / Chinese language selection, including translated status messages and menu commands.
  • Added left-half image clicking for previous-page navigation, with an independent switch.
  • Optimized MPV scrolling, image-loading detection and repeated size updates.
  • Improved handling of MPV image/container replacements and pages added while fitting is disabled.

Local checks covered image sizing, navigation, preloading, error recovery, language persistence, fullscreen retention and returning to the gallery with one Back action.