Developers

ThunderBrowse has a lot of functions that Developers can use to integrate ThunderBrowse in their extensions. These are especially helpful when you are making custom buttons (supported since version 3.2.0.2).

This is a (basic) list of some of the functions developers can use:
Getting areas:
checkBrowser() = gets the current browser, like getBrowser(), also updates the variable tbrowser and windowType so it can be used like: tbrowser.reload();. windowType will hold the current window’s type.
getCurrentDocument() = returns the current document the user is on. Like calling window.content.document

Getting Urls:
getUserHomepage() = returns the user’s homepage
getHostName() = returns the current hostname
getHost() = return the current host
getCurrentURL() gets the current url

Loading Urls:
browsetothrufield(url) = load a url (pass a url as an argument). You must use this function if you want to load urls in versions below 3.2.1.6, 3.2.1.6 has support for getBrowser().loadURI();
ThunderTabBrowser.addTab(url) = load a url in a tab (pass a url as an argument)
loadHomePage() = load the user homepage in a tab

Bookmarks:
addPageMark() = Bookmark current page. 3.2.1.8 uses ThunderBrowseBookmarks.addCurrentPage()
manageBookmarks() = Opens bookmark manager

UI:
bigtime() = maximize/minimize the browsing area (recommended that ThunderBrowseButtons.fullScreen() is used [3.2.1.4 and up])
urlbarcollapse() = toggle the urlbar (recommended that ThunderBrowseButtons.collapseBar() is used [3.2.1.4 and up])

Version:
getTBVersion() will return the user’s Thunderbird version number (Available in Version 3.2.0.5 and up)
getThunderBrowseVersion() returns the current ThunderBrowse version, great for checks to see if something is available. (Only in Version 3.2.0.5 and up)

Misc:
abletoloadLinks() returns true if links can be loaded in ThunderBrowse. False if not. (Only in Version 3.2.0.8 and up)


Since version 3.2.1.4, ThunderBrowse also responds to getBrowser() [NOT gBrowser()]!

Here are some that are available, you can also use these functions without getBrowser():

getBrowser().addTab(url) = adds a tab with the passed URL loaded
getBrowser().loadURI(url) = loads a url in the current tab
getBrowser().selectedTab(tab) = allows you to set a tab if you pass an argument, gives you current tab if nothing is passed
getBrowser().getBrowserForTab(tab) = returns the <browser> element for the specified tab.
getBrowser().removeCurrentTab() = removes current tab
getBrowser().getBrowserAtIndex(number) = gives you the current browser for the specified tab index
getBrowser().removeTab(tab) = removes the tab specified
getBrowser().mPanelContainer and getBrowser().tabContainer = give you the ThunderBrowse <tabs> element
getBrowser().goBack() = Goes one page back [can only be used on current browser, however 3.2.1.7 allows you to use it on any browser that has a history]
getBrowser().goForward() = Goes one page forward [can only be used on current browser, however 3.2.1.7 allows you to use it on any browser that has a history]