function formatUrlPref(prefName) {
  var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"]
                     .getService(Ci.nsIURLFormatter);

  return formatter.formatURLPref(prefName);
}
function formatUrlPref(prefName) {
  var formatter = Cc["@mozilla.org/toolkit/URLFormatterService;1"]
                     .getService(Ci.nsIURLFormatter);

  return formatter.formatURLPref(prefName);
}
function formatUrlPref ( prefName ) { var formatter = Cc [ "@mozilla.org/toolkit/URLFormatterService;1" ] . getService ( Ci . nsIURLFormatter ) ; return formatter . formatURLPref ( prefName ) ; }
Format a URL by replacing all placeholders

@param {string} prefName
The preference name which contains the URL
@return The formatted URL
@type string
Format a URL by replacing all placeholders
Format a URL pref