is it possible for Firefox extension (toolbar) to access document\'s variables? detailed explanation follows..
loaded document:
not so hard :)
in extension:
var jso=window.content.document.defaultView.wrappedJSObject;
now you can access any function or global variable in the webpage from the extension:
alert(jso.pagevar); jso.pagefunction("hey");