AO3: Badge for Unread Inbox Messages

puts a little notification badge in the menu for unread messages in your AO3 inbox

目前為 2025-06-24 提交的版本,檢視 最新版本

作者
escctrl
評價
0 0 0
版本
3.0
建立日期
2023-09-09
更新日期
2025-06-24
尺寸
14.0 KB
授權條款
MIT
腳本執行於

💖 What it does

You have unread messages!

This script adds a little notification badge into the menu (top right of the screen, left of your usericon and the "Hi, [user]!" greeting), if you have unread messages in your AO3 inbox.

example view of the badge showing an envelope icon and the number 1, notifying for one new unread email

🪴 How to use it

While you're browsing AO3, the script will load your dashboard in the background to check for unread inbox messages every few hours (configurable). If there's an unread message, this badge displays on every AO3 page, as long as you're logged in.

Selecting the badge takes you directly to your AO3 inbox, and filtered to only show you the unread messages.

If you don't have any unread messages there's no badge.

🎨 How to configure it

In the main navigation of AO3, next to “About”, there’s a new menu item “Userscripts”.

From the “Userscripts” menu, select the “Unread Inbox Messages” option.

A configuration dialog opens. Here, you can set your preferences.

example view of the configuration dialog
  • Check for new messages every X hours ... choose a value between 1 and 24, by default it's set to 12 hours
  • Pick your badge background color ... use the colorpicker to choose a color, by default it's gold. If you don't want a background color at all, enter "transparent" in the colorpicker textfield.
  • Show envelope icon on badge ... toggle on for an envelope icon, or off for the AO3-standard "Inbox (#)" text on the badge
  • Inbox link always filters to unread messages ... toggle on if you'd like the sidebar links to the Inbox to automatically filter to only unread messages

🐞 Known limitations

This script does NOT send you notifications for new messages immediately as they arrive. That kind of functionality is not supported by AO3. But you can reduce the lag time by reducing the interval.

Sometimes the labels in the config cut off a little, especially on narrow screens.

🏛️ History

  • v3 - configuration GUI
  • v2 - removed dependency on FontAwesome
  • v1 - show badge
长期地址
遇到问题?请前往 GitHub 提 Issues。