Last active
December 10, 2015 02:18
-
-
Save kevingorski/4366664 to your computer and use it in GitHub Desktop.
CYRIN bookmarklet example for http://kevingorski.com/articles/CYRIN-In-The-Browser/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This code would normally be compressed to one line and not include comments --> | |
<a id="Target" href="javascript: | |
// Begin self-executing function | |
(function(){ | |
// Check for existing definitions | |
if(typeof CYRIN == 'undefined' | |
||typeof CYRIN.Bookmarklet == 'undefined'){ | |
// Include updatable script | |
document.body.appendChild( | |
document.createElement('script') | |
).src = 'http://canyoureaditnow.com/Bookmarklet.js?' + (Math.random()) | |
} else { | |
// Otherwise skip to the analysis step | |
CYRIN.Bookmarklet.analyze() | |
} | |
}());">CYRIN?</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment