Skip to content

Instantly share code, notes, and snippets.

@davidcalhoun
Created June 4, 2011 01:45
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 davidcalhoun/1007454 to your computer and use it in GitHub Desktop.
Save davidcalhoun/1007454 to your computer and use it in GitHub Desktop.
Simple Microdata Highlighter Bookmarklet
// Dead simple - works on anything with attribute CSS selectors (IE7+)
// http://en.wikipedia.org/wiki/Microdata_(HTML5)
(function(){
var a = document.createElement('style');
a.innerHTML = '[itemprop] {border: 2px solid red;}';
document.body.appendChild(a);
})();
// Paste this into your address bar
javascript:(function(){var a = document.createElement('style');a.innerHTML = '[itemprop] {border: 2px solid red;}';document.body.appendChild(a);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment