Known compatibility: ATH, ULCX, BHD, RFX, HHD, DP, LST, HUNO, ANT, OE+
This is a reworked version of fulcrum's original script that adds:
- Handler architecture: Makes it easier to add new formats
- Custom decorators: Set a prefix/suffix for bridged usernames
- DOM metadata: Completely customize appearance with TheLounge theme CSS
- Regex matcher support: Pair with custom handlers to do almost anything
- Preview support: Surgical DOM modification preserves link previews and event listeners
- More handlers: BHD, extensive HUNO support
- Nick coloring: Bridged usernames get proper TheLounge colors instead of inheriting bot colors
- fulcrum: Original script (https://aither.cc/forums/topics/3874)
- marks: Autocomplete enablement (https://aither.cc/forums/topics/3874/posts/32274)
- Install Tampermonkey or a compatible userscript manager
- Create a new script and paste this in
- Set
@matchto the IP or domain you access TheLounge on
- Make sure
@matchis set to your TheLounge domain, in the same format as:*://your-thelounge-domain.com/* - Try disabling autocomplete (
USE_AUTOCOMPLETE: false) - Check the browser console for errors
- When in doubt, simply refresh the page (sometimes necessary regardless)
- 1.0 - Initial release
- 2.0 - Fix link previews, change return structure to add
modifyContentandprefixToRemove - 2.1 - Sanitize zero-width characters (fixes HUNO Discord handler)
- 2.2 - Add option to hide join/quit messages, add TheLounge icon to Tampermonkey
- 2.3 - Add color matching - bridged usernames get proper TheLounge colors
- 2.4 - Update ULCX matchers
- 2.5 - Add ANT support
- 2.6 - Add RFX support, enable DP and HHD support, fix ANT/BHD support
- 2.7 - Enable OE+ support, fix config indents, fixes script breaking after viewing a non-chat page
Custom CSS can be added easily in TheLounge > Settings > Appearance.
You can use the following CSS selectors to target bridged messages in your themes:
span[data-bridged] /* selects the usernames of all bridged messages */
span[data-bridged-channel] /* selects bridged messages from specific channels */
attr(data-bridged) /* retrieves the embedded metadata prefix (e.g., 'SB') */Italicize all bridged usernames:
span[data-bridged] {
font-style: italic;
}Show HUNO Discord ranks in tiny text before username, only in #huno* channels:
span[data-bridged-channel~="#huno"]:before {
content: attr(data-bridged);
font-size: 8px;
margin-right: 5px;
}Like what I do? Feel free to buy me a coffee. :)


