Think Stayfocusd for Habitica (https://habitica.com).
Lose HP for lingering on bad websites, gain Exp and GP for hanging out on good websites. Set the hours and days of the week you want to be productive and integrate your browsing habits with HabitRPG to improve your overall productivity.
To use, enter your Habitica User ID and API Token in the options page (User -> Settings, see the screenshot). Hit me up with suggestions
谷歌浏览器、其他Chromium内核的浏览器