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.