rem: url = url.replace(/%VERSION%/g, SIDEBAR_VERSION); 
add: url = url.replace(/%SIDEBAR_VERSION%/g, SIDEBAR_VERSION); 
context: function get_remote_datasource_url() {  var url = '';  var prefs = Components.classes['component://netscape/preferences'];  if (prefs) {    prefs = prefs.getService();  }  if (prefs) {    prefs = prefs.QueryInterface(Components.interfaces.nsIPref);  }  if (prefs) {    try {      url = prefs.CopyCharPref("sidebar.customize.all_panels.url");      url = url.replace(/%VERSION%/g, SIDEBAR_VERSION);      var locale_progid = 'component://netscape/intl/nslocaleservice';      var locale = Components.classes[locale_progid].getService();      locale = locale.QueryInterface(Components.interfaces.nsILocaleService);      locale = locale.GetLocaleComponentForUserAgent();      locale = locale.toLowerCase();      url = url.replace(/%LOCALE%/g, locale);      debug("Remote url is " + url);    } catch(ex) {      debug("Unable to get remote url pref. What now? "+ex);    }  }  return url;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/aa911b3df45a6ad0454dbb32bc5cb1c6691da0df/sidebarOverlay.js/clean/xpfe/components/sidebar/resources/sidebarOverlay.js