Skip to content

Instantly share code, notes, and snippets.

@jkphl
Last active June 20, 2016 17:10
Show Gist options
  • Save jkphl/c61c0ae33a216cfc78c3fe4a6788285d to your computer and use it in GitHub Desktop.
Save jkphl/c61c0ae33a216cfc78c3fe4a6788285d to your computer and use it in GitHub Desktop.
Bookmarklet for submitting the current page to http://micrometa.jkphl.is and analyzing the embedded Microformats2 and schema.org markup. Create a new bookmark in your browser and paste this code as the bookmark target.
javascript:var f=document.createElement("form");f.action="https://micrometa.jkphl.is",f.method="post",f.target="_blank";var u=document.createElement("input");u.type="hidden",u.name="url",u.value=document.location,f.appendChild(u);var s=document.createElement("input");s.type="hidden",s.name="microdata",s.value=1,f.appendChild(s),document.body.appendChild(f),f.submit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment