Created
January 9, 2015 22:53
-
-
Save clojens/7bdd9d8741c1b00489e1 to your computer and use it in GitHub Desktop.
Bookmarklets
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
javascript:(function() { | |
function se(d) { | |
return d.selection ? d.selection.createRange().text : d.getSelection() | |
} | |
s = se(document); | |
for (i=0; i<frames.length && !s; i++) s = se(frames[i].document); | |
if (!s || s=='') s = prompt('Enter%20search%20terms%20for%20Light%20Table',''); | |
open('https://github.com/LightTable/LightTable' + (s ? '/search?utf8=%E2%9C%93&q=' + encodeURIComponent(s) : '')).focus(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment