add:   var pref; pref = Components.classes['@mozilla.org/preferences;1']; pref = pref.getService(); pref = pref.QueryInterface(Components.interfaces.nsIPref); var panel; try { if (pref.GetBoolPref("wallet.namePanel.hide")) { panel = document.getElementById("pnameID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("snameID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("bnameID"); panel.setAttribute("style", "display:none;"); } if (pref.GetBoolPref("wallet.addressPanel.hide")) { panel = document.getElementById("paddressID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("saddressID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("baddressID"); panel.setAttribute("style", "display:none;"); } if (pref.GetBoolPref("wallet.phonePanel.hide")) { panel = document.getElementById("pphoneID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("sphoneID"); panel.setAttribute("style", "display:none;"); panel = document.getElementById("bphoneID"); panel.setAttribute("style", "display:none;"); } if (pref.GetBoolPref("wallet.creditPanel.hide")) { panel = document.getElementById("pcreditID"); panel.setAttribute("style", "display:none;"); } if (pref.GetBoolPref("wallet.employPanel.hide")) { panel = document.getElementById("pemployID"); panel.setAttribute("style", "display:none;"); } if (pref.GetBoolPref("wallet.miscPanel.hide")) { panel = document.getElementById("pmiscID"); panel.setAttribute("style", "display:none;"); } } catch(e) {  } 
context:     onload:      function() {        walletViewerInterface = Components.classes["@mozilla.org/walleteditor/walleteditor-world;1"].createInstance();        walletViewerInterface = walletViewerInterface.QueryInterface(Components.interfaces.nsIWalletEditor);        walletServiceInterface = Components.classes['@mozilla.org/wallet/wallet-service;1'];        walletServiceInterface = walletServiceInterface.getService();        walletServiceInterface = walletServiceInterface.QueryInterface(Components.interfaces.nsIWalletService);        bundle = srGetStrBundle(JS_STRINGS_FILE); /* initialize string bundle */        if (!EncryptionTest()) {          dump("*** user failed to unlock the database\n");          return;        }        if (!FetchInput()) {          dump("*** user failed to unlock the database\n");          return;        }        doSetOKCancel(this.onOK, this.onCancel);      },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/3a5dee489824a0747b4ac35cceb3808a18de98f9/WalletViewer.js/clean/extensions/wallet/editor/WalletViewer.js