TorrentBD Shoutbox @Mention Autocomplete and mouse click mention

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

作者
JeTexY
日安装量
1
总安装量
1
评分
0 0 0
版本
1.7
创建于
2025-08-26
更新于
2025-08-26
大小
16.0 KB
许可证
MIT
适用于

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.