Skip to content

Instantly share code, notes, and snippets.

@apnerve
Created November 1, 2018 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apnerve/3724e6e40b30b4f62cedd14522236f1a to your computer and use it in GitHub Desktop.
Save apnerve/3724e6e40b30b4f62cedd14522236f1a to your computer and use it in GitHub Desktop.
A simple bookmarklet to convert any website to a whiteframe
javascript:(function() {[].slice.apply(document.all).forEach(e => { e.style.color = 'black'; e.style.background = 'none'; e.style.borderColor = 'black';e.style.boxShadow = 'none'} );[].slice.apply(document.querySelectorAll('img')).forEach(i => {i.style.backgroundColor='lightgray';i.width = i.width; i.height = i.height;i.alt='';i.style.filter='none';i.style.border='none';i.src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'})})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment