Is there a way to restrict the domains an addon can work on?

Is there a way to restrict the domains an addon can work on?

So far the only way I can see is to edit the source of the addon and add additional restrictions, but it that means resigning them or disabling signature requirements.

The other alternative I can think of create an addon which disables addons when on domains those addons should be blocked on.

Are there any other more efficient alternatives?

Currently there is no real way for you as the end-user to do that, though I believe it’s something the Firefox developers are thinking about, especially with Chrome offering a similar feature.