eight04 / better-standalone-image

An userscript to make standalone image display better.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better Standalone Image

An userscript to make standalone image display better.

Features

  • Style standalone image page. Make it center and background transparent.
  • Support SVG (Currently Greasemonkey-only).
  • No configuration. Please edit the source if you prefer a different color.
  • Work on CSP restricted sites.

Screenshots

Firefox

Before: http://i.imgur.com/UbKVXiy.png After: http://i.imgur.com/UFRgQuI.png

Chrome

Before: http://i.imgur.com/iAEWADT.png After: http://i.imgur.com/Ff1PPqF.png

Compatibility

  • Firefox + Greasemonkey 3
  • Firefox + Tampermonkey
  • Chrome + Tampermonkey

Install

GreasyFork

Similar scripts

Known Issues

  • Vertical centering doesn't work well with SVG. Some parts might be cropped if the image is larger than windows.

Changelog

  • 0.1.1 (Jan 10, 2018)

    • Fix: large image is cropped in chrome.
  • 0.1.0 (Jul 29, 2017)

    • First release

About

An userscript to make standalone image display better.

License:MIT License


Languages

Language:JavaScript 71.2%Language:CSS 28.8%