Skip to content

Instantly share code, notes, and snippets.

@danielgwood
Created April 25, 2011 18:36
Show Gist options
  • Save danielgwood/940971 to your computer and use it in GitHub Desktop.
Save danielgwood/940971 to your computer and use it in GitHub Desktop.
Holmes.css bookmarklet
<!--
Holmes.css bookmarklet
Adds the holmes tests (see https://github.com/redroot/holmes) to any page at a click of a button
Usage instructions:
1. Install the latest version of holmes on your local/personal web server
2. Create a new HTML page containing the contents of this Gist
3. Edit the href to holmes in the source, if your holmes stylesheet is not located at http://localhost/tools/holmes.min.css
4. Open the HTML page in your browser, and drag the bookmarklet to your bookmarks bar
Then just click the button on any page you want to holmesify!
-->
<a href="javascript:(function(){holmes=document.createElement('LINK');holmes.href='http://localhost/tools/holmes.min.css';holmes.rel='stylesheet';holmes.type='text/css';document.body.appendChild(holmes);document.getElementsByTagName('body')[0].className+='%20holmes-debug';})();">Holmes.css</a>
<!--
Holmes.css bookmarklet
Adds the holmes tests (see https://github.com/redroot/holmes) to any page at a click of a button
Usage instructions:
1. Install the latest version of holmes on your local/personal web server
2. Create a new HTML page containing the contents of this Gist
3. Edit the href to holmes in the source, if your holmes stylesheet is not located at http://localhost/tools/holmes.min.css
4. Open the HTML page in your browser, and drag the bookmarklet to your bookmarks bar
Then just click the button on any page you want to holmesify!
-->
<a href="javascript:(function(){holmes=document.createElement('LINK');holmes.href='http://localhost/tools/holmes.min.css';holmes.rel='stylesheet';holmes.type='text/css';document.body.appendChild(holmes);document.getElementsByTagName('body')[0].className+='%20holmes-debug';})();">Holmes.css</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment