Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

YubNub Bookmarklet (See related posts)

// description of your code here
This works with the site yubnub.org. First highlight some text, then click the bookmarklet. A dialogue box pops up to ask the YubNub command to be used. It then performs that command on the highlighted text.
   1  
   2  javascript:q = "" + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); p = prompt("Yubnub search type? ... ", ""); if (q!=null) location="http://yubnub.org/parser/parse?command=" + escape(p).replace(/ /g, "+") + " " + escape(q).replace(/ /g, "+"); void 0

You need to create an account or log in to post comments to this site.


Click here to browse all 5562 code snippets

Related Posts