CB Chat Emote URL Cleaner + Size Cap

Remove dimension tokens from emote IMG URLs and visually cap them to 250x80. No other elements are touched.

ئاپتورى
imarawn
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
1
باھا نومۇرى
0 0 0
نەشرى
1.1.0
قۇرۇلغان ۋاقتى
2025-10-11
يېڭىلانغان ۋاقتى
2025-10-11
Size
4.0 KB
ئىجازەتنامىسى
CC-BY-NC-SA-4.0
قوللايدىغىنى

🧩 CB Chat Emote URL Cleaner + Size Cap

Removes _250x80, -250x80, and /250x80/ from Chaturbate chat emote URLs and limits their visible size to 250×80px.


📖 Description

Chaturbate emotes (especially animated GIFs) often include hard-coded size suffixes in their image URLs, such as _250x80.
These prevent larger or animated versions from loading and playing correctly in chat.

This userscript automatically detects new emotes in the chat window and cleans their URLs by removing the unwanted dimension tokens.
It also ensures that displayed emotes never exceed 250px wide or 80px high, keeping the chat layout tidy.

The script operates only inside the chat window and touches no other images or parts of the site.


⚙️ How It Works

  • Watches the live chat container (.msg-list-fvm.message-list)
  • Detects new <img data-testid="emoticonImg"> elements as they appear
  • Removes dimension tokens (_WxH, -WxH, /WxH/) from their src URLs
  • Applies a soft visual cap (max-width: 250px; max-height: 80px)
  • Leaves all other attributes and elements untouched

No additional network requests, no visual restyling, and no interference with other scripts.


✅ Features

  • 🧹 Automatically cleans emote URLs in chat
  • 🎬 Fixes non-playing GIFs caused by scaled image links
  • 🧱 Keeps emotes within 250×80 pixels
  • 💬 Affects only the chat area
  • ⚡ Lightweight and self-contained

🧩 Installation

  1. Install a userscript manager like Tampermonkey or Violentmonkey
  2. Add the Script.

📜 License

CC BY-NC-SA 4.0
You are free to share and adapt this work for non-commercial use, provided attribution and the same license are preserved.