PK z"P6chrome/PK \"P6#  chrome.manifestcontent osb jar:chrome/osb.jar!/content/osb/ overlay chrome://browser/content/browser.xul chrome://osb/content/osbOverlay.xul overlay chrome://navigator/content/navigator.xul chrome://osb/content/osbOverlay.xul locale osb ja-JP jar:chrome/osb.jar!/locale/ja-JP/ PK x"P6 nIIchrome/osb.jarPK P6content/PK P6 content/osb/PK K6}լLLcontent/osb/contents.rdf chrome:settingsURL="chrome://osb/content/osbOptions.xul" chrome://osb/content/osbOverlay.xul PK Fb&5.content/osb/osb-main.css/* Statusbar display */ statusbar[osbconfig="true"] > statusbarpanel { display: -moz-box !important; -moz-appearance: none; visibility: visible; } statusbar > *[osbselected="true"] { -moz-appearance: none; -moz-border-top-colors: red; -moz-border-bottom-colors: red; -moz-border-left-colors: red; -moz-border-right-colors: red; background-color: yellow; visibility: visible; display: -moz-box !important; } /* The following are required for Firefox 1.0 otherwise they won't display */ /* Firefox 1.5 or later doesn't have this problem and will ignore the last */ /* two entries. The first will cause the icon to change temporarily, but */ /* does not harm anything so leave it in. */ statusbar[osbconfig="true"] > #page-report-button { list-style-image: url("chrome://browser/skin/Info.png"); } statusbar[osbconfig="true"] > #security-button { -moz-image-region: rect(0px, 18px, 18px, 0px); list-style-image: url("chrome://browser/skin/Secure.png"); } statusbar[osbconfig="true"] > #livemark-button { list-style-image: url("chrome://browser/skin/page-livemarks.png"); }PK K6 0) { this.ndOrgList.removeChild(this.ndOrgList.getElementsByTagName('listitem')[0]); } var ndListItem, ndListCell; for (var ctr = 0; ctr < this.aPref.length; ++ctr) { ndListItem = document.createElement('listitem'); if (this.aPref[ctr].split(':')[1] == '0') ndListItem.style.color = '#888888'; ndListCell = document.createElement('listcell'); ndListCell.setAttribute('label', this.aPref[ctr].split(':')[0]); ndListItem.appendChild(ndListCell); this.ndOrgList.appendChild(ndListItem); } return true; }, ToggleButtons: function() { var nIndex = this.ndOrgList.selectedIndex; var ndSelected = this.ndOrgList.selectedItem; var nRowCount = this.ndOrgList.getElementsByTagName('listitem').length; if (!ndSelected) return true; this.ndMoveUp.disabled = ''; this.ndMoveDown.disabled = ''; if (nIndex == 0) { this.ndMoveUp.disabled = 'disabled'; } else if (nIndex == (nRowCount - 1)) { this.ndMoveDown.disabled = 'disabled'; } if (ndSelected.style.color.length > 0) { this.ndShow.disabled = ''; this.ndHide.disabled = 'disabled'; } else { this.ndShow.disabled = 'disabled'; this.ndHide.disabled = ''; } if (this.ndLastSelected) this.ndLastSelected.removeAttribute('osbselected'); this.ndLastSelected = this.ndWindow.document.getElementById(ndSelected.firstChild.getAttribute('label')); if (this.ndLastSelected) this.ndLastSelected.setAttribute('osbselected', true); return true; }, MoveUp: function() { if (this.bLocked) return true; this.bLocked = true; var nIndex = this.ndOrgList.selectedIndex; var ndSelected = this.ndOrgList.selectedItem; if (ndSelected && (nIndex != 0)) this.ndOrgList.selectItem(this.ndOrgList.insertBefore(ndSelected, this.ndOrgList.getPreviousItem(ndSelected, 1))); this.ToggleButtons(); this.ndWindow.objOSB.Organize(this.GetItemList()); this.bLocked = false; return true; }, MoveDown: function() { if (this.bLocked) return true; this.bLocked = true; var nIndex = this.ndOrgList.selectedIndex; var ndSelected = this.ndOrgList.selectedItem; var nRowCount = this.ndOrgList.getElementsByTagName('listitem').length; if (ndSelected && (nIndex != (nRowCount - 1))) this.ndOrgList.selectItem(this.ndOrgList.insertBefore(ndSelected, this.ndOrgList.getNextItem(ndSelected, 2))); this.ToggleButtons(); this.ndWindow.objOSB.Organize(this.GetItemList()); this.bLocked = false; return true; }, ShowItem: function() { if (this.bLocked) return true; this.bLocked = true; var ndSelected = this.ndOrgList.selectedItem; if (ndSelected) ndSelected.style.color = ''; this.ToggleButtons(); this.ndWindow.objOSB.Organize(this.GetItemList()); this.bLocked = false; return true; }, HideItem: function() { if (this.bLocked) return true; this.bLocked = true; var ndSelected = this.ndOrgList.selectedItem; if (ndSelected) ndSelected.style.color = '#888888'; this.ToggleButtons(); this.ndWindow.objOSB.Organize(this.GetItemList()); this.bLocked = false; return true; }, Cancel: function() { if (this.ndLastSelected) this.ndLastSelected.removeAttribute('osbselected'); this.ndWindow.objOSB.ndStatusBar.removeAttribute('osbconfig'); if (this.bLocked) return true; this.bLocked = true; this.ndWindow.objOSB.Organize(this.ndWindow.objOSB.prefService.getCharPref('StatusBar').split(',')); this.bLocked = false; return true; }, Update: function() { if (this.ndLastSelected) this.ndLastSelected.removeAttribute('osbselected'); this.ndWindow.objOSB.ndStatusBar.removeAttribute('osbconfig'); if (this.bLocked) return true; this.bLocked = true; var aItems = this.GetItemList(); this.ndWindow.objOSB.prefService.setCharPref('StatusBar', aItems.join(',')); this.ndWindow.objOSB.Organize(aItems); this.bLocked = false; return true; }, GetItemList: function() { var sItem; var aListItems = this.ndOrgList.getElementsByTagName('listcell'); var aItemList = []; for (var ctr = 0; ctr < aListItems.length; ++ctr) { sItem = aListItems[ctr].getAttribute('label') + ':'; sItem += (aListItems[ctr].parentNode.style.color.length > 0) ? '0' : '1'; aItemList.push(sItem); } return aItemList; }, DefaultItemList: function() { this.aPref = this.ndWindow.objOSB.aDefaultItemList; this.sCurrentItemList = this.aPref.join(','); this.RefreshList(); this.ndWindow.objOSB.Organize(this.aPref); return true; } };PK Ax)4PPcontent/osb/osbOptions.xul