Created
February 20, 2012 23:53
-
-
Save studgeek/1872383 to your computer and use it in GitHub Desktop.
Add uninstall to Massive Extender 1.2.1 (patch)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From cc455e690c511e9df92e92bde16286b3c771a893 Mon Sep 17 00:00:00 2001 | |
From: studgeek <[email protected]> | |
Date: Mon, 20 Feb 2012 18:55:58 -0500 | |
Subject: [PATCH] Added uninstall to 1.2.1 | |
--- | |
.../script/aoc.js | 12 ++++++++++++ | |
1 files changed, 12 insertions(+), 0 deletions(-) | |
diff --git a/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js b/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js | |
index ad00ea0..4ef75c2 100644 | |
--- a/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js | |
+++ b/{E6175356-15A3-11DF-AFEE-C56455D89593}/script/aoc.js | |
@@ -58,6 +58,15 @@ Components.utils.import("resource://gre/modules/AddonRepository.jsm"); | |
for (let listitem in this.installables) | |
listitem._installStatus.installRemote(); | |
}, | |
+ 'command:UninstallAll': | |
+ function () | |
+ { | |
+ Array.slice(this.listbox.children).forEach(function(listitem) { | |
+ if (listitem.mAddon.uninstall) { | |
+ listitem.mAddon.uninstall(); | |
+ } | |
+ }); | |
+ }, | |
get listbox () | |
this.document.querySelector('#bandwagon-addons-list'), | |
get installables () | |
@@ -115,6 +124,9 @@ Components.utils.import("resource://gre/modules/AddonRepository.jsm"); | |
label={"Install all suitable remote add-ons"} | |
oncommand="MassiveExtenderAddOn['command:InstallAll']();"/> | |
<menuitem | |
+ label={"Uninstall all suitable remote add-ons"} | |
+ oncommand="MassiveExtenderAddOn['command:UninstallAll']();"/> | |
+ <menuitem | |
label={"Close this menu"}/> | |
</menupopup> | |
}], | |
-- | |
1.7.5.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment