TorrentBD Shoutbox @Mention Autocomplete and mouse click mention

Client-side @mention autocomplete + click-to-mention for TorrentBD shoutbox.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Author
JeTexY
Daily installs
0
Total installs
24
Ratings
0 0 0
Version
1.8.3.1
Created
2025-08-26
Updated
2025-08-31
Size
15.2 KB
License
MIT
Applies to

TorrentBD Shoutbox @Mention Autocomplete and mouse click mention

Description:

This script helps to autocomplete username in Shoutbox with the letter "@" by poping up select to suggestion only the user that have message history in shoutbox chat.

Features:

  • Listen to @ keypress in the input field.
  • Display a suggestion dropdown. Works with dynamically added messages.
  • Allow keyboard navigation (↑ ↓ Enter) and mouse click or touch to select.
  • Autocomplete selected name into the input.
  • Work client-side only — no server requests.
  • match TorrentBD's shoutbox dark theme.
  • usernames dropdown scroll-able.
  • no cache usernames. deletes usernames when its not in the shoutbox anymore.
  • Pressing Tab cycles forward through suggestions. Shift + Tab cycles backward. Enter to insert. Escape to close.
  • Partial substring matching.
  • Custom scrollbar styling.
  • Mouse hover colorful highlight and left click to auto type @mention.
  • Multiple username insert with Ctrl/Cmd + Left click.
  • Replace last mention mouse click with a new click.
  • Modern looking suggestion box while typing @ . Narrow dropdown.
  • Auto scroll names (select-to-option) while using Tab button.
  • Username link and message body link works as intendet/ as default.
  • Self message delete fucntion works.
  • Forum Post or New torrent message don't get highlighted.

Requirements:

  • Tampermonkey or Greasemonkey or similar browser extensions that can run user scripts. Note: I only tested with Tempermonkey.

Installation:

  • Click on this link of Greasy Fork
  • Press Install.

HOW TO USE:

You can mention someone in the chat in 2 ways.

  • Type @ in the chat input and names will show. If u type any letter of your desired username, it will narrow down the suggestion. Then click enter to insert. TAB to cycle through names.
  • Move/ hover your mouse on the message to whom you want to mention, will be highlighted and then just left click. It will auto type @mention in the input field. Do Ctrl+click to mention multiple username

Give me feedback if you find a bug, i will try to fix. I am newbie to JS.