Skip to content

Conversation

@cnnrro
Copy link
Contributor

@cnnrro cnnrro commented Oct 12, 2025

Added an option to display notification badges on the tab favicon, with values extracted from tab titles using a customizable regular expression defined in the settings.

  • Default State: The feature is disabled by default.

  • Display Options:

    • Choose to display badges on all tabs, only pinned tabs, only normal tabs, or no tabs.
    • Badges can be displayed as a badge containing the notification count or a simple dot.
  • Custom Regular Expression:

    • Users can customize the regular expression to match values in tab titles.
    • The provided regular expression will be validated before saving. If invalid, the input field will visually indicate the error with a shake effect on blur.
  • Additional Information:

    • CSS variables have been added for further customization options.
    • Please note that translations other than English are machine-generated and have not been verified for accuracy.
    • I have tested the functionality to ensure that badges display correctly upon loading, title changes, and settings adjustments.

Screenshots

Options

Screenshot from 2025-10-12 15-51-33

Badge/Dot Style

Screenshot from 2025-10-12 15-37-13 Screenshot from 2025-10-12 15-37-49

CSS Variables

Screenshot from 2025-10-12 15-51-55

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant