rafalimaz / TMTools

A helpfull chrome extension for Snellman's Terra Mystica moderator website
https://chrome.google.com/webstore/detail/tm-tools/jandhnpfekgdcklcgfcljmijgbgnchni
10 stars 0 forks source link

Feature request: fewer repeat audio notifications #20

Open sparr opened 6 years ago

sparr commented 6 years ago

I want to set the sound alert interval low, but not get repeated alerts while I'm actively playing. Maybe an option for "check every X seconds, but then don't check for Y seconds after an alert"?

rafalimaz commented 6 years ago

If I understood well, you want to stop the notifications if you are actively playing. My first idea is stop the notifications if the player is with the snellman site focused.

For instance: a) Site is not focused, there are 0 actions -> notify on (no alert) b) Site is not focused, there are 1 action -> notify on (alert) c) Site is focused, there are 1 action -> notify off (no alert) d) Site is focused, there are 0 action -> notify on (no alert)

The step d) is a restart of notification in case of it goes to 0 with site focused. In this case even if user is with site focused, it will start to notify in case it goes to 1 action.

Thanks for the suggestion, I will try to think more about it later on.