Too lazy to login to your board/board you're moderating to check if there are any reports? Or perhaps you'd like some magic notification popping up in front of you if there are any reports, without having to login?
I made a thing (Linux only, but probably not difficult to adapt).
#!bin/sh
# Set script directory
path="/path/to/script"
# Login
wget –keep-session-cookies \
–save-cookies $path/cookies.txt \
–post-data 'username=<username>&password=<password>&login=Continue' \
https://8ch.net/mod.php \
–delete-after
# Get number of reports
get=$(wget –load-cookies $path/cookies.txt https://8ch.net/mod.php -q -O - | grep -Po '(?<=queue \().*(?=\))')
# Check number of reports, notify if there are some
if [ "$get" != 0 ]
then
zenity –width 150 –warning –timeout=30 –text="Reports: $get"
fi
rm $path/cookies.txt
exit 0
You can remove/change the "–timeout=30" part which closes the popup after 30 seconds if you like. Put the script wherever and change path to your liking. In crontab -e put in the following (runs it every 30 minutes, change if you like):
*/30 * * * * export DISPLAY=:0.0 && sh /path/to/script/script.sh
And finally this is needed in .bash_profile or else zenity derps out:
[[ $DISPLAY ]] && xhost +localhost:$LOGNAME
Enjoy I guess. Nothing special really. Could probably be done better too.