This file contains hidden or 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
| // NOTE: The security policy of some sites (such as this gist.github.com!) will prevent this from working. | |
| // Check your javascript console if something doesn't work. | |
| javascript:(function(){ | |
| var apiKey = 'INSERT YOUR API KEY HERE'; | |
| if (apiKey == 'INSERT YOUR API KEY HERE') { | |
| alert('Error: You need to add your api key to this bookmarklet!'); | |
| return; | |
| } | |
| var xhr = new XMLHttpRequest(); |