|Available in userscripts||❌|
|Available in persistent scripts||✔️|
|Required manifest permissions||
Note: currently only one addon (
msg-count-badge) can use this API. Do not use it in your addon without discussing on GitHub first.
Allows addons to display a badge, a bit of text that is layered over the extension icon, frequently a number.
Text shown on the badge.
Numbers are automatically converted to strings.
If this is set to
0, the badge will be hidden.
Color of the badge.
Accepts any CSS supported color.