Skip to content

Instantly share code, notes, and snippets.

@niedzielski
Last active June 17, 2020 12:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save niedzielski/63becce4640d28caaec1eaa2b9744f90 to your computer and use it in GitHub Desktop.
Save niedzielski/63becce4640d28caaec1eaa2b9744f90 to your computer and use it in GitHub Desktop.
Pixelate images bookmarklet; disables zoomed image smoothing.
javascript:(_ => {
const sheet = document.createElement('style');
sheet.innerHTML = 'img { image-rendering: pixelated; }';
document.head.appendChild(sheet);
for(let i = 0; i < frames.length; ++i) {
frames[i].document.head.appendChild(sheet);
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment