Dieses Script ruft in Nightly nur noch den Addons-Manager auf, stößt aber nicht, wie erwartet, eine UpDate Suche an.
Wieder mal nur bei mir so?
JavaScript
/* Addons-UpDateCheck Button*/
(function() {
if (window.__SSi != 'window0')
return;
CustomizableUI.createWidget({
id: 'addons-update-button',
defaultArea: CustomizableUI.AREA_NAVBAR,
label: 'Add-ons Update',
tooltiptext: '',
onCommand: onCommand,
onCreated: function(button) {
button.style.listStyleImage = 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAdUlEQVQokZVSwRHAIAgLPYfoXs7RCTpG53Avt7APrhaFU8gLMEEJAkEQgFbc7IxkVjt0r6Sp7VIVITumBpKt00FA2ThmjXzkfMMWO8EZFSj8LrUyjsG9b9DaJXq+qAIVxEUxtLHpaXE95dj1NcK2rmbwaGJ4Af0tIg00j/6iAAAAAElFTkSuQmCC)';}
});
function onCommand(event) {
let frameScript = function() {
addEventListener('pageshow', function onPageshow(event) {
let document = event.target;
if (document.URL != 'about:addons')
return;
content.gViewController.doCommand('cmd_findAllUpdates');
content.gViewController.doCommand('cmd_goToAvailableUpdates');
removeEventListener('pageshow', onPageshow);
let categories = document.getElementById('categories');
let item = document.getElementById('category-availableUpdates');
categories.addEventListener('mousedown', function onMousedown(event) {
if (event.target != item) {
item.hidden = true;
categories.removeEventListener('mousedown', onMousedown);
};
});
});
};
let frameScriptURI = 'data:,(' + frameScript.toString() + ')()';
let window = event.target.ownerGlobal;
window.openTrustedLinkIn('about:addons', 'tab');
window.gBrowser.selectedBrowser.messageManager.loadFrameScript(frameScriptURI, true);
};
})();
Alles anzeigen