Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Noitidart/b28caa13e2fa30066d3d to your computer and use it in GitHub Desktop.
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.
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
});
@Noitidart
Copy link
Author

README

Rev1

  • Works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment