Wallhaven Enhancer

Stats on thumbs + hover preview + click open + D download + arrow browse

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Advertisement:

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

Advertisement:

Autore
quantavil
Installazioni giornaliere
0
Installazioni totali
2
Valutazione
0 0 0
Versione
1.1
Creato il
13/06/2026
Aggiornato il
13/06/2026
Dimensione
12,1 KB
Licenza
MIT
Applica a

Missed the installation block. Updated README:


Wallhaven Enhancer

A high-performance userscript that optimizes the Wallhaven gallery interface with real-time metadata injections, automated hover previews, seamless keyboard browsing, and rate-limit safe background data resolution.

Installation

  1. Install a userscript manager extension such as Tampermonkey, Violentmonkey, or Greasemonkey for your browser.
  2. Click the Install this script button at the top of this Greasy Fork page.
  3. Confirm the installation in your userscript manager dashboard.
  4. Navigate to or refresh any Wallhaven page to activate the enhancer features.

Features

  • Instant Overlay Previews: Hovering over any thumbnail opens an adaptive, high-resolution visual overlay capped at 92vw and 88vh to preserve maximum pixel details without losing visual grid alignment.
  • Lazy-Loaded File Sizes: Displays file size metrics directly on the thumbnail bar. Uses an asynchronous IntersectionObserver coupled with a throttled network queue (50ms sequential cool-down boundary) to pre-fetch header data without triggering Cloudflare rate limits.
  • Intelligent Auto-Close: Previews close instantly when moving the cursor away, triggering manual pointer scroll (wheel), or mobile swipe actions (touchmove).
  • Cached Keyboard Navigation: Preload grid index lists dynamically when the overlay initializes. Prevents redundant DOM queries during fast arrow-key browsing.

Keyboard Controls & Interactions

Trigger Action Target
Mouse Hover Activates full-resolution preview overlay Thumbnail Grid
Mouse Move Away Automatically terminates preview state Active Overlay
Mouse Scroll (Wheel) Instantly terminates overlay to allow unhindered browsing Active Overlay
Click Opens the core wallpaper profile page in a background tab Active Overlay
ArrowRight Advances to the next structural item in the cached grid layout Active Overlay
ArrowLeft Navigates back to the preceding item in the cached grid layout Active Overlay
D / d Triggers a direct background download via native browser loops Active Overlay
Escape Forced termination of active preview layer Active Overlay

Technical Architecture

  • MutationObserver Surveillance Engine: Monitors dynamic DOM append operations (e.g., infinite scrolling). Truncates internal cycles by screening out self-generated modifications originating from the overlay container target block (#whOv).
  • Decoupled Concurrency Loop: Offloads extension sorting and payload delivery to a prioritized data queue (networkQueue), restricting execution matrices to a rigid, deterministic sequence.
  • Memory Optimization: Leverages a local localStorage eviction mechanism limited strictly to the top 2000 entries to prevent localized overhead creep. Automatically recycles unused memory blocks using URL.revokeObjectURL handlers during manual browser download streams.