diff --git a/admin-flag-notifier/README.md b/admin-flag-notifier/README.md new file mode 100644 index 0000000..09912d5 --- /dev/null +++ b/admin-flag-notifier/README.md @@ -0,0 +1,41 @@ +# Admin Flag Notifier + +This userscript monitors the moderator flag queue and sends you a desktop notification +when new flags arrive, so that you don't have to refresh the page manually. + +## Features + +- The script is only active when the flag queue is open; once you navigate away, it won't +bother you anymore. +- It checks the current status of the queue every 60 seconds. +- Due to the expected number of flags, Stack Overflow moderators are advised not to use +the script. It may harm your sanity. + +## Installation + +- Make sure you have Tampermonkey (for Chrome) or Greasemonkey (for Firefox) installed. + +- Install the userscript with +[this direct link](https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/admin-flag-notifier/admin-flag-notifier.user.js). + +- If you're on a Mac, you might need to change the notification style for your browser. I +personally found it annoying that banners disappeared so fast; to solve that, go to System +Preferences -> Notifications, select your browser and make sure the alert style is set to +Alerts as in the picture below: + + ![](install0.png) + +- Navigate to the flag queue (/admin/dashboard). The browser will ask you to give +permission for notifications, so click Allow: + + ![](install1a.png) + + ![](install1b.png) + +- Wait for some flags. Once the script detects new flags, a notification will appear: + + ![](install2a.png) + + ![](install2b.png) + + Click on the body of the notification, it will focus on the tab with the flag queue and refresh the page. diff --git a/admin-flag-notifier/admin-flag-notifier.user.js b/admin-flag-notifier/admin-flag-notifier.user.js index c189a95..0526ff3 100644 --- a/admin-flag-notifier/admin-flag-notifier.user.js +++ b/admin-flag-notifier/admin-flag-notifier.user.js @@ -3,6 +3,8 @@ // @namespace https://github.com/Glorfindel83/ // @description Refreshes the flag dashboard automatically and sends desktop notifications when there are new flags. // @author Glorfindel +// @updateURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/admin-flag-notifier/admin-flag-notifier.user.js +// @downloadURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/admin-flag-notifier/admin-flag-notifier.user.js // @version 0.1 // @match *://*.stackexchange.com/admin/dashboard* // @match *://*.stackoverflow.com/admin/dashboard* diff --git a/admin-flag-notifier/install0.png b/admin-flag-notifier/install0.png new file mode 100644 index 0000000..a5137cc Binary files /dev/null and b/admin-flag-notifier/install0.png differ diff --git a/admin-flag-notifier/install1a.png b/admin-flag-notifier/install1a.png new file mode 100644 index 0000000..453f3a3 Binary files /dev/null and b/admin-flag-notifier/install1a.png differ diff --git a/admin-flag-notifier/install1b.png b/admin-flag-notifier/install1b.png new file mode 100644 index 0000000..2365787 Binary files /dev/null and b/admin-flag-notifier/install1b.png differ diff --git a/admin-flag-notifier/install2a.png b/admin-flag-notifier/install2a.png new file mode 100644 index 0000000..fd60a3b Binary files /dev/null and b/admin-flag-notifier/install2a.png differ diff --git a/admin-flag-notifier/install2b.png b/admin-flag-notifier/install2b.png new file mode 100644 index 0000000..76ee9b2 Binary files /dev/null and b/admin-flag-notifier/install2b.png differ