I think it sets a bad precedent to require this logic in the userscript as we can't count on the web to be well behaved. Furthermore each additional guideline we have to place on userscript authors adds an additional pain.
I think it should be filtered in the context daemon (IndicatorView).
Filtering it in the context daemon as opposed to the API has a small benefit. Namely imagine the following state.
I think it sets a bad precedent to require this logic in the userscript as we can't count on the web to be well behaved. Furthermore each additional guideline we have to place on userscript authors adds an additional pain.
I think it should be filtered in the context daemon (IndicatorView).
Filtering it in the context daemon as opposed to the API has a small benefit. Namely imagine the following state.
GMail, interest 1: ShowIndicator(count -> 3)
(time passes)
GMail, interest 2: ShowIndicator(count -> 0)
The indicator should be filtered from the view.