%extensionsDTD; %aboutDTD; ]> i); ]]> this._updateStars(); document.getAnonymousElementByAttribute(this, "anonid", "progress"); document.getAnonymousElementByAttribute(this, "anonid", "cancel-btn"); document.getAnonymousElementByAttribute(this, "anonid", "status"); null document.getAnonymousElementByAttribute(this, "anonid", "name-btn"); document.getAnonymousElementByAttribute(this, "anonid", "date-btn"); document.getAnonymousElementByAttribute(this, "anonid", "price-btn"); document.getAnonymousElementByAttribute(this, "anonid", "relevance-btn"); = 0); ]]> document.getAnonymousElementByAttribute(this, "anonid", "label"); document.getAnonymousElementByAttribute(this, "anonid", "creator-link"); document.getAnonymousElementByAttribute(this, "anonid", "creator-name"); document.getAnonymousElementByAttribute(this, "anonid", "label"); document.getAnonymousElementByAttribute(this, "anonid", "translatorsBox"); document.getAnonymousElementByAttribute(this, "anonid", "message"); document.getAnonymousElementByAttribute(this, "anonid", "progress"); document.getAnonymousElementByAttribute(this, "anonid", "purchase-remote-btn"); document.getAnonymousElementByAttribute(this, "anonid", "install-remote-btn"); document.getAnonymousElementByAttribute(this, "anonid", "restart-needed"); document.getAnonymousElementByAttribute(this, "anonid", "undo-btn"); document.getAnonymousElementByAttribute(this, "anonid", "warning-container"); document.getAnonymousElementByAttribute(this, "anonid", "warning"); document.getAnonymousElementByAttribute(this, "anonid", "warning-link"); document.getAnonymousElementByAttribute(this, "anonid", "warning-btn"); document.getAnonymousElementByAttribute(this, "anonid", "error-container"); document.getAnonymousElementByAttribute(this, "anonid", "error"); document.getAnonymousElementByAttribute(this, "anonid", "error-link"); document.getAnonymousElementByAttribute(this, "anonid", "pending-container"); document.getAnonymousElementByAttribute(this, "anonid", "pending"); document.getAnonymousElementByAttribute(this, "anonid", "info-container"); document.getAnonymousElementByAttribute(this, "anonid", "info"); document.getAnonymousElementByAttribute(this, "anonid", "version"); document.getAnonymousElementByAttribute(this, "anonid", "experiment-state"); document.getAnonymousElementByAttribute(this, "anonid", "experiment-time"); document.getAnonymousElementByAttribute(this, "anonid", "icon"); document.getAnonymousElementByAttribute(this, "anonid", "date-updated"); document.getAnonymousElementByAttribute(this, "anonid", "description"); document.getAnonymousElementByAttribute(this, "anonid", "state-menulist"); document.getAnonymousElementByAttribute(this, "anonid", "ask-to-activate-menuitem"); document.getAnonymousElementByAttribute(this, "anonid", "always-activate-menuitem"); document.getAnonymousElementByAttribute(this, "anonid", "never-activate-menuitem"); document.getAnonymousElementByAttribute(this, "anonid", "preferences-btn"); document.getAnonymousElementByAttribute(this, "anonid", "enable-btn"); document.getAnonymousElementByAttribute(this, "anonid", "debug-btn"); document.getAnonymousElementByAttribute(this, "anonid", "disable-btn"); document.getAnonymousElementByAttribute(this, "anonid", "remove-btn"); document.getAnonymousElementByAttribute(this, "anonid", "update-btn"); document.getAnonymousElementByAttribute(this, "anonid", "control-container"); document.getAnonymousElementByAttribute(this, "anonid", "install-status"); document.getAnonymousElementByAttribute(this, "anonid", "checking-update"); document.getAnonymousElementByAttribute(this, "anonid", "update-available"); document.getAnonymousElementByAttribute(this, "anonid", "include-update"); false document.getAnonymousElementByAttribute(this, "anonid", "relnotes-toggle-btn"); document.getAnonymousElementByAttribute(this, "anonid", "relnotes-loading"); document.getAnonymousElementByAttribute(this, "anonid", "relnotes-error"); document.getAnonymousElementByAttribute(this, "anonid", "relnotes-container"); document.getAnonymousElementByAttribute(this, "anonid", "relnotes"); this.hasPermission(perm)); this._stateMenulist.disabled = !hasActivatePermission; this._stateMenulist.hidden = false; this._stateMenulist.classList.add('no-auto-hide'); } else { this._stateMenulist.hidden = true; if (this.hasPermission("enable")) { this._enableBtn.hidden = false; let tooltip = gViewController.commands["cmd_enableItem"] .getTooltip(this.mAddon); this._enableBtn.setAttribute("tooltiptext", tooltip); } else { this._enableBtn.hidden = true; } if (this.hasPermission("disable")) { this._disableBtn.hidden = false; let tooltip = gViewController.commands["cmd_disableItem"] .getTooltip(this.mAddon); this._disableBtn.setAttribute("tooltiptext", tooltip); } else { this._disableBtn.hidden = true; } } if (this.hasPermission("uninstall")) { this._removeBtn.hidden = false; let tooltip = gViewController.commands["cmd_uninstallItem"] .getTooltip(this.mAddon); this._removeBtn.setAttribute("tooltiptext", tooltip); } else { this._removeBtn.hidden = true; } this.setAttribute("active", this.mAddon.isActive); var showProgress = this.mAddon.purchaseURL || (this.mAddon.install && this.mAddon.install.state != AddonManager.STATE_INSTALLED); this._showStatus(showProgress ? "progress" : "none"); let debuggable = this.mAddon.isDebuggable && Services.prefs.getBoolPref('devtools.chrome.enabled') && Services.prefs.getBoolPref('devtools.debugger.remote-enabled'); this._debugBtn.disabled = this._debugBtn.hidden = !debuggable if (this.mAddon.type == "experiment") { this.removeAttribute("notification"); let prefix = "experiment."; let active = this.mAddon.isActive; if (!showProgress) { let stateKey = prefix + "state." + (active ? "active" : "complete"); this._experimentState.value = gStrings.ext.GetStringFromName(stateKey); let now = Date.now(); let end = this.endDate; let days = Math.abs(end - now) / (24 * 60 * 60 * 1000); let timeKey = prefix + "time."; let timeMessage; if (days < 1) { timeKey += (active ? "endsToday" : "endedToday"); timeMessage = gStrings.ext.GetStringFromName(timeKey); } else { timeKey += (active ? "daysRemaining" : "daysPassed"); days = Math.round(days); let timeString = gStrings.ext.GetStringFromName(timeKey); timeMessage = PluralForm.get(days, timeString) .replace("#1", days); } this._experimentTime.value = timeMessage; } } ]]> document.getAnonymousElementByAttribute(this, "anonid", "notice"); document.getAnonymousElementByAttribute(this, "anonid", "restart-btn"); document.getAnonymousElementByAttribute(this, "anonid", "icon"); document.getAnonymousElementByAttribute(this, "anonid", "name"); document.getAnonymousElementByAttribute(this, "anonid", "version"); document.getAnonymousElementByAttribute(this, "anonid", "warning"); document.getAnonymousElementByAttribute(this, "anonid", "warning-link"); document.getAnonymousElementByAttribute(this, "anonid", "install-status");