This is quite similar to HabitLab https://habitlab.stanford.edu/ which also includes a number of other options (such as pausing videos on youtube before playing them, hiding comments and news feeds on Facebook, etc). [Disclaimer: I built HabitLab]
No comments yet.