Bonk.io Chat Linkify

Makes plain-text links in Bonk.io chat clickable with a Confirm Window for user safety.

作者
miqueIIa
日安装量
0
总安装量
0
评分
0 0 0
版本
1.0.0
创建于
2025-08-12
更新于
2025-08-12
大小
11.8 KB
许可证
MIT
适用于

Bonk.io Chat Linkify

Turns plain-text links in Bonk.io chat into clickable links with a native-looking safety confirm.

What it does

  • Linkifies links in lobby and in-game chat.
  • Shows an OEM-styled confirm: title → domain → warning → trust checkbox → buttons.
  • Opens links in a new tab with rel="noopener noreferrer".

Why safer

OEM look & feel

  • Reads colors, radius, shadow, font from Bonk’s “Leave Game?” window each time.
  • Buttons use native classes + hover/press SFX (never dispatches a click to leave buttons).

Trust list

  • “Trust this domain” stores host in localStorage (bonk_linkify_allow_domains).
  • Clear it anytime:
    localStorage.removeItem('bonk_linkify_allow_domains')

Notes

  • Visiting any site still reveals your IP to that site—stay cautious.
  • URL matching is simple on purpose; extremely exotic links may not be detected.