Skip to content

Instantly share code, notes, and snippets.

@jywarren
Last active August 10, 2020 03:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jywarren/8b2a216cd5ac84d4c42df5f8cbfee5bd to your computer and use it in GitHub Desktop.
Save jywarren/8b2a216cd5ac84d4c42df5f8cbfee5bd to your computer and use it in GitHub Desktop.
A bookmarklet to make all pixel art crisp. https://bit.ly/pxlate Save as a bookmark URL and use the bookmark on any page to prevent anti-aliasing.
javascript:(function()%7Bdocument.body.style.imageRendering%20%3D%20(document.body.style.imageRendering%20%3D%3D%20%22pixelated%22%20%3F%20%22auto%22%20%3A%20%22pixelated%22)%3B%7D)()%3B
@jywarren
Copy link
Author

jywarren commented Aug 9, 2020

@jywarren
Copy link
Author

jywarren commented Aug 9, 2020

Original: document.body.style.imageRendering = (document.body.style.imageRendering == "pixelated" ? "auto" : "pixelated");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment