Created
August 19, 2014 07:53
-
-
Save Noitidart/b28caa13e2fa30066d3d to your computer and use it in GitHub Desktop.
_ff-addon-snippet-ManipulateAddonAutoUpdate - This shows how to manipulate an addon's auto-update setting programatically. Good thing about this is that when you programtically set it while the tab with the add-ons "More" or "Inline Options" pane is visible, the DOM will update there as well.
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
Cu.import('resource://gre/modules/AddonManager.jsm'); | |
AddonManager.getAddonByID('Profilist@jetpack', function(addon) { | |
console.info('addon:', addon); | |
console.info('addon.applyBackgroundUpdates:', addon.applyBackgroundUpdates); | |
addon.applyBackgroundUpdates = 0; //off | |
//addon.applyBackgroundUpdates = 1; //default | |
//addon.applyBackgroundUpdates = 2; //on | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
README
Rev1