Skip to content

Instantly share code, notes, and snippets.

@FabianBeiner
Created December 10, 2010 15:24
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 FabianBeiner/736329 to your computer and use it in GitHub Desktop.
Save FabianBeiner/736329 to your computer and use it in GitHub Desktop.
Mark <h[1-6]> & <p>
javascript:(function(){var%20e=["h1","h2","h3","h4","h5","h6","p"];for(var%20c%20in%20e){var%20d=document.body.getElementsByTagName(e[c]);if(d.length){for(var%20a=0;a<d.length;a++){var%20b=d[a].innerHTML;d[a].innerHTML='<span%20style="background-color:#ff0;color:#000;cursor:help;font-size:.8em;font-weight:700;padding:1px%204px%202px%203px;">'+e[c].toUpperCase()+"</span>&nbsp;"+b}}}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment