document updated 19 years ago, on Jul 20, 2005
http://urlfix.mozdev.org/
URLfix, a plugin that remaps the URL sometimes. Hooks straight into the 'urlbar'
STOCK CODE PATH
==================================================
http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.xul#200
Definition of 'urlbar' tag
http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#2038
function handleURLBarCommand()
function canonizeUrl()
====>>> function getShortcutOrURI()
http://lxr.mozilla.org/mozilla/source/browser/components/bookmarks/src/nsBookmarksService.cpp#3403
nsBookmarksService::ResolveKeyword()
urlbar-tag
=> handleURLBarCommand()
=> canonizeUrl()
=> getShortcutOrURI()
=> nsBookmarksService::ResolveKeyword()
Soooo... how do we hook getShortcutOrURI()? It seems to be a global function... so just go ahead
and straightforwardly patch it? Is it really that easy?