Skip to content

Instantly share code, notes, and snippets.

@glowinthedark
Created April 11, 2019 18:29
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 glowinthedark/3ec8e2d27b3e75717f0269350e6c39e7 to your computer and use it in GitHub Desktop.
Save glowinthedark/3ec8e2d27b3e75717f0269350e6c39e7 to your computer and use it in GitHub Desktop.
Browser bookmarklet to remove all styles
javascript:(function(){for(i=0;i<document.styleSheets.length;i++){document.styleSheets.item(i).disabled=true;}all=document.getElementsByTagName('*');for(i=0;i<all.length;i++){var s=all[i].style;s.cssText='';s.width='';s.padding='1px';s.margin='1px';s.fontSize='12pt';s.lineHeight='150%';if(s.position=='absolute'||s.position=='relative'||s.position=='fixed')s.position='static';}var st=document.body.style;st.paddingLeft='100px';st.paddingRight='100px';st.backgroundImage='none';st.backgroundColor='#fff';st.color='#000';})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment