Infinite scroll & reader mode with image prefetch and floating controls for E-Hentai / ExHentai
Enhanced reading experience for E-Hentai / ExHentai with infinite scroll, full-screen reader, and smart image loading.
npm install
npm run dev # Development (hot reload)
npm run build # Production
Output: dist/e-hentai-plus.user.js
src/
├── main.ts # Entry point
├── menu-commands.ts # Tampermonkey menu commands
├── types/index.ts # Type definitions
├── state/
│ ├── config.ts # Constants and settings
│ └── store.ts # Centralized state
├── utils/
│ ├── dom.ts # DOM utilities
│ └── icons.ts # SVG icons
├── services/
│ ├── page-parser.ts # Page URL and range parsing
│ ├── image-loader.ts # Image loading with retry and cache
│ ├── request-queue.ts # Concurrent request queue
│ └── prefetch.ts # Next page prefetching
├── ui/
│ ├── styles.css # Styles
│ ├── float-control.ts # Floating controls
│ ├── settings-panel.ts # Settings panel
│ └── single-page/
│ ├── overlay.ts # Reader mode overlay
│ ├── scrollbar.ts # Scrollbar with thumbnail panel
│ ├── thumbnail-panel.ts # Virtual-scrolling thumbnails
│ ├── navigation.ts # Keyboard/wheel/click navigation
│ └── auto-play.ts # Auto-play logic
└── features/
├── scroll-mode.ts # Infinite scroll mode
└── single-page-mode.ts # Reader mode facade
MIT