samueljun / tomato-clock

Tomato Clock is a simple browser extension for managing your productivity.
GNU General Public License v3.0
331 stars 55 forks source link

[WIP] Annoying mode #47

Closed primeapple closed 3 years ago

primeapple commented 6 years ago

Hi, i have done some Stuff for #46 .

Do you @samueljun have some Ideas, how to keep the notification onscreen, until the user clicks on it? Maybe you could spawn a new notification every ~6 seconds (thats when the old one disapeers).

Otherwise, we could use another Button or for example a click on the Tomato in the taskbar.

First pull request, so please have mercy :)

samueljun commented 6 years ago

Hey thanks for the pull request! Any contributions are definitely appreciated. I'll take a look sometime this week

primeapple commented 6 years ago

Hi @samueljun ... I tried so hard and did not get any further :D

Problem is in notifications.js

I tried adding a onClose listener --> didn't recognize, when the notification was closed (~6 seconds) I tried updating the notification every 5 seconds --> didn't work, notifications.update() is not supported by Firefox. I tried recreating the notification every 5 seconds --> it gave me a infinite loop

Maybe there are some plugins we could use, because right now, annoying mode is not possible. Atleast in Firefox... Maybe Polyfil?

primeapple commented 6 years ago

Hi, @samueljun , did you already have time to look at it? I would really appreciate it... I really miss the "annoying mode" ...