Skip to content

GitHub image preview

Rob Garrison edited this page May 16, 2017 · 47 revisions

A userscript that allows the previewing of repository images.

  • This script adds the ability to preview images (png, jpg, jpeg, gif, tif, tiff, bmp, webp and svg).
  • There are two preview modes:
    • Mini preview where the image maximum size is around 180 pixels x 130 pixels in size.
    • Full height image preview (870 pixels maximum width with proportional height).
  • Click this link to install from GitHub, or install from GreasyFork.

Screenshot

image-preview

Change Log

Version 1.1.9 (5/16/2017)

  • Change license to MIT.

Version 1.1.8 (4/21/2017)

  • Update mutation url.

Version 1.1.5 - 1.1.7 (4/13/2017)

  • Switch to using mutations.js.

Version 1.1.4 (3/25/2017)

  • Use pjax event & fix linting.

Version 1.1.3 (12/21/2016)

  • Reduce image tile margin.

Version 1.1.2 (9/24/2016)

  • Adjust preview card size after GitHub changes.

Version 1.1.0 - 1.1.1 (9/16/2016)

  • Change "btn-group" to "BtnGroup" (GitHub update).
  • Beautify.
  • One more button class tweak.

Version 1.0.9 (7/28/2016)

  • Fixed a selector, then went crazy (converted to ES6).

Version 1.0.8 (7/28/2016)

  • Style tweaks.

Version 1.0.7 (6/7/2016)

  • Ignore case on image types.

Version 1.0.6 (5/22/2016)

  • Support submodules & non-links.
  • Add link colors to non-image files.

Version 1.0.5 (5/21/2016)

  • Move file extension text over the file icon.

Version 1.0.4 (5/19/2016)

  • Fix file extension display:
    • Ignore extensionless files (e.g. "LICENSE").
    • Ignore files starting with a period (e.g. ".gitignore").

Version 1.0.3 (5/18/2016)

  • Add @connect setting to prevent popup warnings.

Version 1.0.2 (5/18/2016)

  • Show file extension for non-image files.

Version 1.0.1 (5/18/2016)

  • Increase check display mode delay on init.

Version 1.0.0 (5/17/2016)

  • Initial commit
Clone this wiki locally