I want to write a Firefox addon that could get the content of the address bar in real time, for example this addon will change every "a" to "A" just as the user pressed "a". 
The problem is that I couldn't find any way to do that in Javascript, is there a way to do it (getting the address bar content in real time)?