rem: try { if (pref.GetBoolPref("imageblocker.enabled")) { var element; element = document.getElementById("imagesTab"); element.setAttribute("style","display: inline;" ); element = document.getElementById("images"); element.setAttribute("style","display: inline;" ); } } catch(e) { } 
context: function Startup(){  // xpconnect to cookieviewer interface  cookieviewer = Components.classes["component://netscape/cookieviewer/cookieviewer-world"].createInstance();  cookieviewer = cookieviewer.QueryInterface(Components.interfaces.nsICookieViewer);  // intialise string bundle for   bundle = srGetStrBundle(JS_STRINGS_FILE);  // install imageblocker tab if instructed to do so by the "imageblocker.enabled" pref  try {    pref = Components.classes['component://netscape/preferences'];    pref = pref.getService();    pref = pref.QueryInterface(Components.interfaces.nsIPref);    try {      var tab = window.arguments[0];      if (tab == "0") {        element = document.getElementById("cookiesTab");        element.setAttribute("selected","true" );        element = document.getElementById("panel");        element.setAttribute("index","0" );      } else {        element = document.getElementById("cookieviewer");        element.setAttribute("title", bundle.GetStringFromName("imageTitle"));        element = document.getElementById("imagesTab");        element.setAttribute("selected","true" );        element = document.getElementById("panel");        element.setAttribute("index","2" );      }    } catch(e) {    }    try {      if (pref.GetBoolPref("imageblocker.enabled")) {        var element;        element = document.getElementById("imagesTab");        element.setAttribute("style","display: inline;" );        element = document.getElementById("images");        element.setAttribute("style","display: inline;" );      }    } catch(e) {    }  } catch (ex) {    dump("failed to get prefs service!\n");    pref = null;  }   loadCookies();  loadPermissions();  loadImages();  doSetOKCancel(onOK, null);  window.sizeToContent();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/9edfe8d4073482d9d688ab98b60eb3b6ebf8cae4/CookieViewer.js/clean/extensions/wallet/cookieviewer/CookieViewer.js