AdguardTeam / PopupBlocker

Popup blocking userscript
GNU Lesser General Public License v3.0
337 stars 31 forks source link

implement ui and storage #15

Closed theseanl closed 7 years ago

theseanl commented 7 years ago

This is not ready for merging. gulp dev will build a userscript that is testable. gulp beta will build a minified userscript that needs to be tested too.

Notes:

ameshkov commented 7 years ago

There should be a settings page so that users can manage whitelisted domains.

We don't need it right now.

Don't make tasks THAT GLOBAL, it makes it too hard to review complicated things. Instead do it step by step, one single thing after another.

ameshkov commented 7 years ago

Every checkbox in your list should be a separate GH issue with a separate pull request.

Moreover, for the second release, we need nothing of it -- it'd be enough to have alerts in the main frame and silent suppression of pop-ups in the nested frames.

theseanl commented 7 years ago

At least we should provide a way that a user can revert whitelisted domains. This is needed for 2.1 version. Could you please provide idea on how this should be done in a less global way?

ameshkov commented 7 years ago

At least we should provide a way that a user can revert whitelisted domains. This is needed for 2.1 version. Could you please provide idea on how this should be done in a less global way?

Reinstall in AG cleans the GM properties, which is ok as a temporary solution until we come up with better UI.

theseanl commented 7 years ago

@ameshkov Here https://github.com/AdguardTeam/PopupBlocker/blob/feature/issues/13/src/ui/show-alert.ts#L70 requestAnimationFrame is not supported on IE9, should I add a polyfill?

ameshkov commented 7 years ago

@seanl-adg I am quite sure that we should make this userscript support IE11+

theseanl commented 7 years ago

Just for a reference, currently most of functionality works on IE10.