Wallhaven Enhancer

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

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
作者
quantavil
1日のインストール数
1
累計インストール数
2
評価
0 0 0
バージョン
1.1
作成日
2026/06/13
更新日
2026/06/13
大きさ
12.1KB
ライセンス
MIT
対象サイト

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.