Bookmarks, with gumption

Wikipedia:Bookmarklet
SO:bookmarklet
Web Development Bookmarklets

 

Bookmarklet Builder in Perl
bookmarklet tutorial
javascript interpreter bookmarklet
http://www.mvps.org/dmcritchie/ie/bookmarklets.htm
good article

 

http://www.ibm.com/developerworks/library/wa-realweb3/
http://betterexplained.com/articles/how-to-make-a-bookmarklet-for-your-web-application/

 

 

JQuery and bookmarklets

JQuery bookmarklet
Testing jQuery Commands With Firebug Or With a Bookmarklet
Fun with JQuery and bookmarklets
Add jQuery to any web page by using a bookmarklet

 

http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/
http://benalman.com/code/test/jquery-run-code-bookmarklet/

 

 

Smarter Bookmarklet shortcuts (for Fire Fox, at least)

Life Hacker: Smarter keyword shortcuts - search if terms entered; goto site normally otherwise. nice! (more reference at original link)

 

javascript:if('%s') location.href='http://lifehacker.com/search/%s';else location.href='http://lifehacker.com/';

 

pm-wiki search and edit shortcut

This example is for my own website, using the pmwiki-engine.
If no page (assumed to be accurately formatted) is provided, defaults to root page, no actions:

javascript:if('%s')%20location.href='http://www.xradiograph.com/?q=%s&focus=on&action=search';else%20location.href='http://www.xradiograph.com/';

 

javascript:if('%s')%20location.href='http://www.xradiograph.com/%s?action=edit';else%20location.href='http://www.xradiograph.com/';

 

Search Netflix

javascript:{var loc="http://movies.netflix.com/";if(escape("%s")){var srch="%s".replace(" ","+");loc="http://movies.netflix.com/WiSearch?raw_query=SRCHTERM&ac_category_type=none&ac_rel_posn=-1&ac_abs_posn=-1&v1=SRCHTERM&search_submit=".replace(/SRCHTERM/g,srch)}location.href=loc}

 

 

Hey! Bookmarklets are broken in Firefox !

oy, veh!
My solution on StackOverflow

Since Firefox’s default behavior for new tabs is about:newtab, which is nothing, and bookmarklets only run once something is loaded, you can do the following to set a default page, and then run bookmarklets:

 

  1. open about:config
  2. find browser.newtab.url
  3. double-click and change from about:newtab to about:blank (or URI of your choice)
  4. Ctrl-T and run bookmarklets in new tabs!

 

See Also

FireFox

 

Tags

JavaScript pmwiki firefox shortcuts