image ResEx Logo
ResExcellence www : Powered by Google
Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets


Files are in Stuffit 5 or greater format.
Free download.

Tell us about a bad link.

Thank You!


Running
without a restart.

Add JavaScript Bookmark Tools to Your Browser
by Len Ford and Jody Chen
02-04-2004

These JavaScript tools can be applied to the bookmarks of any browser that supports JavaScript and can be used in Mac OS X, Mac OS Classic and other operation systems. Install by drag and drop or copy and paste into your bookmarks. It is IMPORTANT that the scripts are entered as ONE LINE WITHOUT RETURNS OR SPACES.


Email Page
Submitted by Len Ford.
Script grabs the title of the webpage you're viewing and uses it for the subject line of an outgoing email message, the page url is automatically dropped into the message body area.

javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href)


Email Page with Selected Text
Submitted by Rams.
I decided to extend what Len Ford sent in to include selected text as well as the url in the body of the email..

javascript:x=escape(getSelection());location.href='mailto:?SUBJECT='+document.title+'&BODY='+x+'\n\n'+escape(location.href)


Use Dictionary.com to Define Selected Word
Submitted by Jody Chen.
This one will define a selected word using Dictionary.com. If nothing is selected, a pop-up window will open in which you can enter your word. I named it (what else?) "Define".

javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt('Define:',''))%7D;window.location='http://dictionary.reference.com/search?q='+x


Use Babelfish to Translate Selected Word
Submitted by Jody Chen.
This one will send the selected word or phrase to Babelfish, where you can select the language(s) into which you wish to translate it.

javascript:x=escape(getSelection());if(!x)%7Bvoid(x=location.href)%7D;location.href='http://babelfish.altavista.com/cgi-bin/translate?jss&urltext='+x+'';


Open A Blank Mail Compose Window
Submitted by Jody Chen.

javascript:location.href='mailto:?'+escape%0A(location.href)


Reset Window Position and Size
Submitted by Jody Chen.
This one resets the window position and size. In my example, the window is set to 815 pixels wide and the available screen height, and 70 pixels from the left edge (where I keep windows minimized in place with WindowShade X.) Feel free to experiment with positions and widths by changing the numerical values in the parentheses.

javascript:self.moveTo(70,0);self.resizeTo(815,screen.availHeight);

A lot of people don't know that you can use special characters (from the Character Palette in the International pane of System Preferences) in bookmark names, and I found it convenient to simply name this resize bookmark with a black square. I also use symbols instead of names for frequently-used bookmarks to save Bookmarks bar real estate. For example I use the Command symbol for Apple.com. Another plus is Safari's use of Command (number) to launch bookmarks, so I can just press Command-6 to resize and reposition my Safari window.




Here's a page of some more useful JavaScript bookmarks posted at Apple.

Cell Phone Themes Icons Mighty Mouse Cursors Software Reviews Widgets & Widgets

Maintained by the Staff of ResExcellence. This entire site ©1997-2006 ResExcellence
Privacy Statement? Sure we gotta Privacy Statement. [an error occurred while processing this directive]