Bookmarks, with gumption

Web Development Bookmarklets


Bookmarklet Builder in Perl
bookmarklet tutorial
javascript interpreter bookmarklet
good article



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



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='';else location.href='';


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:





Search Netflix

javascript:{var loc="";if(escape("%s")){var srch="%s".replace(" ","+");loc="".replace(/SRCHTERM/g,srch)}location.href=loc}



Hey! Bookmarklets are broken in Firefox !

my post FF40 method



According to ghacks, Mozilla wanted the feature removed from about:config and only re-settable via extension:


    The browser.newtab.url preference has no exposed UI, is not really supported, and is abused by search hijackers. We should remove it and encourage people using a non-default new tab page to install an add-on instead.


So, unless policy reverses itself (unlikely, as this is not the first time Mozilla has removed about:config features and insisted they be replaced by extensions), using an extension like New Tab Override is the only option.


NOTE: If you install New Tab Override, you must configure it first, and manually add about:blank to the extension settings.





pre FF 41 method

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




JavaScript pmwiki firefox shortcuts