Firefox style lightbox for images

Added by xiagu_@userstyles, Created: Sep 30, 2015, Updated: Oct 12, 2015
With the style applied

Description:

For pages that are just an image, this style centers the image on the middle of the page with a dark background. Supports transparent images.

This replicates a feature in Firefox for other browsers.

More info
Version 1.1.1

Shamelessly cribbed directly from Firefox's own CSS.

Example URLs: (since Userstyles won't allow images)Change log:
  • 10/12/2015 - 1.1.1
    • Fixed bug in Chrome where very tall images would get assigned negative margins.
  • 10/5/2015 - 1.1
    • Updated to work with Imgur gifv
    • Active on .webp now

Installs:
Applies to:
.*(png|jpg|jpeg|gif|gifv|webm|bmp|tiff|webp)$
License:
CC0 1.0 Universal.
xiagu_@userstyles has waived all copyright and related or neighboring rights to Firefox style lightbox for images, to the extent allowed by law.

Related styles:

WARNING: This webware is not functioning properly. Please enable javascript in your browser and try again.