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

About this user

Sage

« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS 

YubNub Bookmarklet

// 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

Amazon Statistically Improbable Phrases Search Bookmarklet

   1  javascript:q=document.getSelection();for(i=0;i<frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Statistically Improbable Phrase:',''));if(q)location.href='http://www.amazon.com/gp/phrase/'+escape(q)+'/ref=sip_bod_0/103-6410487-8187016'
« Newer Snippets
Older Snippets »
Showing 1-2 of 2 total  RSS