Opens specified page as a tab, on the startup of Thunderbird.
First, define the mode.
lockPref("[email protected]", 0);
Possible values:
- -1: do nothing.
- 0: open the startup page specified by the Thunderbird's preference. (default)
- 1: open the startup page specified by the URI, given as
[email protected]
. - 2: open the startup page specified by the JSON, given as
[email protected]
.
Then, define pages to be opened in startup tabs.
If you choose the mode 1
, specify tabs as a pipe-separated list of URIs, like:
lockPref("[email protected]",
"about:support|about:config");
// optional: open startup tabs in background
lockPref("[email protected]",
true);
If you choose the mode 2
, specify tabs as a JSON array, like:
lockPref("[email protected]",
"[{\"uri\":\"about:support\"},{\"uri\":\"about:config\"}]");
JSON object for each tab can have following information:
uri
(String
, required): the URI of the page.canClose
(Boolean
, default value istrue
): the tab cannot be closed iftrue
.background
(Boolean
, default value isfalse
): the tab is opened in the background iftrue
.