☰

Rule34.xxx Video Previews

Preview video posts automatically or by keyboard shortcut when hovered over a thumbnail

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
SassyRhombus
Denně instalací
0
Celkem instalací
79
Hodnocení
0 0 0
Verze
2.1.0
Vytvořeno
03. 08. 2026
Aktualizováno
03. 08. 2026
velikost
11,1 KB
Licence
0BSD
Spustit na

Plays a post's video in place of its thumbnail on list pages (search, posts index, favorites), activated by mouse hover or a hotkey.

A full independent reimplementation; the hover-preview concept originated in Zeus's "Rule34 Preview Videos" 0.2 (MIT).

Activation

Two mutually exclusive modes, switched at runtime from the userscript menu:

  • Hover (default): resting the pointer on a video thumbnail for hover_delay (500 ms default) loads and plays the preview; leaving the thumbnail pauses and hides it.
  • Hotkey: pressing the keybind (p default, unmodified) while hovering a video thumbnail toggles its preview. Ignored while a text field, editable element, or search box has focus.

Menu commands

Command Effect
Enable/Disable hotkey activation Switch between hover and hotkey mode
Enable/Disable auto-mute Whether previews start muted
Enable/Disable video controls Whether previews render native controls

Settings

Key Default Purpose
start_muted true Previews start muted
hover_delay 500 ms of hover before a preview loads
prefer_hotkey false Hotkey mode instead of hover mode
custom_keybind p Hotkey mode key
controllable true Render native video controls
video_cdn https://api-cdn-mp4.rule34.xxx Video host
image_server https://us.rule34.xxx Poster image host
init_delay 1000 ms to wait before scanning thumbnails

Compatibility

Coexists with Rule34 Enhanced Dark Gallery's masonry layout

Implementation Detail

Works anonymously. When logged in and no CDN is configured, the account options page is scraped once to pick the video CDN matching the account's region; otherwise the default CDN is used.

The video overlays the thumbnail inside its anchor — absolutely positioned and toggled with opacity — so the grid never reflows and no mouse events fire prematurely.

Videos loop, preload metadata only, and are created lazily on first activation. Auto-mute must stay on for autoplay to work without prior user interaction with the site (browser policy).

init_delay exists to let masonry layout scripts settle before thumbnails are scanned. An unrecognized thumbnail path logs a console warning rather than failing silently.