Bookmarklets for your Browser
A bookmarklet , also called a favelet, is a small piece of javascript in a bookmark that you click to do something useful. The following examples work in Firefox. They may also work in other browsers.
Hootlet for Hootsuite.com
More Bookmarklets
Creating a Bookmarklet
You can create a bookmarklet like any other bookmark. Here is the method to create one in the Firefox "Personal Toolbar".
Highlight the bookmarklet code (Select All), then type CTRL+C (hold the CTRL key while typing C) to copy it to the Clipboard.
Create a New Bookmark (open All Bookmarks for editing).
Beside Name
in the Properties box, type a short name for the function.
Beside Location
, type CTRL+V to paste the text you just copied.
Instantly shrinks a page to fit your screen width.
The tool prompts you for an equation and displays the result.
(CTRL+C to copy)
javascript:expr=prompt('Formula... eg: 2*3 + 1/2 ','');if(expr){with(Math){evl=parseFloat(eval(expr))};if(isNaN(evl)){alert('Not a number!')}else{void(prompt('Result:',evl))}}else{void(null)}
U.S. dollars you enter is converted to Canadian dollars at
OANDA.COM .
(CTRL+C to copy)
javascript:q=document.getSelection();for(i=0;i<frames.length;i++){q=frames[i].document.getSelection();if(q)break;}if(!q)void(q=prompt('Enter amount in $USD:',''));if(q)location.href='http://www.oanda.com/cgi-bin/fxcommerce/qcc?amount='+(q)
>/textarea>
</p>
</form>
<h3><A NAME=colour>4. Display "Web Colours" Bookmarklet</A></h3>
<p class=note>Displays a web page of coloured boxes using 216 standard web colours.</p>
<form name="myText4">
<p align=center>
<input onClick="javascript:myText4.code4.focus();myText4.code4.select();"
type="button" value="Select all">
<span class=boxselect>(CTRL+C to copy)</span><br>
<textarea name="code4" cols=60 rows=6>
javascript:t='';c=new Array('00','33','66','99','CC','FF');for(i=0;i<6;i++){t+='<table width=100%>';for(j=0;j<6;j++){t+='<tr>';for(k=0;k<6;k++){L=c[i]+c[j]+c[k];t+='<td bgcolor='+L+'>'+L}t+='</tr>'}t+='</table>'};with(document){write(t);void(close())}
Hootlet for Hootsuite.com
More Bookmarklets