PK :cQ5chrome/PK zeP5Ichrome.manifestcontent opmlr chrome/chromeFiles/content/ locale opmlr en chrome/chromeFiles/locale/en/ skin opmlr classic chrome/chromeFiles/skin/ overlay chrome://browser/content/browser.xul chrome://opmlr/content/overlay.xulPK :cQ5chrome/chromeFiles/PK :cQ5chrome/chromeFiles/content/PK :cQ5#chrome/chromeFiles/content/dialogs/PK $fP5-chrome/chromeFiles/content/dialogs/options.jsfunction opmlrOptionsInit() { const preferencesService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch('extensions.opmlr.'); var preferred; var list = document.getElementById('opmlr-options-list'); var count = preferencesService.getIntPref('destinations_count'); preferred = preferencesService.getIntPref('destinations_preferred'); var i, listitem,cell; for (i=1; i<=count; i++) { var label = preferencesService.getCharPref('destinations_'+i+'_label'); listitem = document.createElement('listitem'); cell = document.createElement('listcell'); cell.setAttribute('label',label); listitem.appendChild(cell); list.appendChild(listitem); } // list.selectItem(list.getItemAtIndex(preferred-1)); list.getItemAtIndex(preferred-1).setAttribute('selected',true); } function opmlrOptionsSetPreferred() { const preferencesService = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefService).getBranch('extensions.opmlr.'); var list = document.getElementById('opmlr-options-list'); var preferred = list.selectedIndex+1; preferencesService.setIntPref('destinations_preferred', preferred); }PK #fP5'.chrome/chromeFiles/content/dialogs/options.xul