Reverting internal preferences when extension is disabled/uninstalled

What’s the best way to revert an about:config preference to its initial value when an XUL overlay extension is disabled or uninstalled? (It’s an extension for SeaMonkey only which is why I’m not using WebExtensions.)

You can use this API to add a listener so you know when your add-on is going to change state.

Thanks, that looks good!

Jorge wrote: