Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save paulmwatson/2d1d603ee1084d72b73f625be18f17c2 to your computer and use it in GitHub Desktop.

Select an option

Save paulmwatson/2d1d603ee1084d72b73f625be18f17c2 to your computer and use it in GitHub Desktop.
// A simple bookmarklet that opens the current URL on Google's
// Structured Data Testing Tool. Useful for checking for
// Schema.org ClaimReview and other embedded structured data.
// Author: @paulmwatson
// License: MIT
// Usage: Go to a URL you think has structured data and click the
// bookmarklet e.g. https://africacheck.org/reports/zumas-anc-birthday-speech-6-claims-fact-checked/
// Installation: Create a new bookmark in your bookmarks bar and put the following as the URL.
javascript:var u = window.location.protocol + '//' + window.location.host + window.location.pathname; window.open('https://search.google.com/structured-data/testing-tool#url=' + encodeURIComponent(u));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment