On Page Load event is useful too if you want your extension to auto start when a tab is fully loaded.
Tabbed Browser:
gBrowser.AddTab("http://google.com");
gBrowser.contentDocument.URL;
gBrowser.contentDocument.body.setAttribute("style","background-color:blue");
you can also get the mostRecentWindow with nsIWindowMediator
On Page Load:
getElementById("appcontent")
No comments:
Post a Comment