mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-09 09:20:15 +01:00
27 lines
649 B
JavaScript
27 lines
649 B
JavaScript
function getCCKLink(item)
|
|
{
|
|
var bundle = document.getElementById("bundle_cck");
|
|
|
|
return bundle.getString(item);
|
|
}
|
|
|
|
// urlPref: lets each application have its own throbber URL. example: "messenger.throbber.url"
|
|
// event: lets shift+click open it in a new window, etc.
|
|
function goClickThrobber( urlPref, e )
|
|
{
|
|
var url;
|
|
try {
|
|
var pref = Components.classes["@mozilla.org/preferences-service;1"]
|
|
.getService(Components.interfaces.nsIPrefBranch);
|
|
url = pref.getComplexValue(urlPref, Components.interfaces.nsIPrefLocalizedString).data;
|
|
}
|
|
|
|
catch(e) {
|
|
url = null;
|
|
}
|
|
|
|
if ( url )
|
|
openUILink(url, e);
|
|
}
|
|
|