(OUTDATED) Chub.AI - Message Formatting Corrector (PC/Desktop Version)

Formats narration and dialogues, and removes <think> tags with a single click. (PC/Desktop Version)

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greatest.deepsurf.us/scripts/551662/1676734/%28OUTDATED%29%20ChubAI%20-%20Message%20Formatting%20Corrector%20%28PCDesktop%20Version%29.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
accforfaciet
Wersja
2.0
Utworzono
05-10-2025
Zaktualizowano
13-10-2025
Rozmiar
11 KB
Licencja
MIT

Summary

Tired of inconsistent AI formatting and annoying <think> tags on Chub.AI? This script automates the entire cleanup process with a single click, giving you perfectly formatted, immersive responses every time.

This version is specifically designed and styled for PC / Desktop users.

Features

  • One-Click Formatting: Adds a convenient floating button (✏️) to your chat screen.
  • Smart Narration Formatting: Automatically wraps all narration (text outside of quotes) in asterisks for italics (*like this*), processing the text line-by-line for maximum accuracy.
  • Preserves Dialogue: Intelligently ignores text within quotation marks ("...") and code blocks (...), leaving spoken lines completely untouched.
  • Automatic Tag Removal: Instantly cleans up the AI's response by removing distracting tags like <think>, <thought>, <system>, and <response>.
  • Fast & Automated: The script handles everything—clicking edit, changing the text, and saving—in a fraction of a second using a method that is safe for modern websites like Chub.AI.
  • Non-Intrusive: The script only runs when you click the button. It doesn't interfere with your typing or the site's normal functionality.

How to Use

  1. After the AI generates a message, you will see a pink floating button with a pencil icon (✏️) on the right side of the chat window.
  2. Click this button.
  3. The script will instantly perform its magic: it clicks 'Edit' on the last message, applies all the formatting rules, and clicks 'Save'.
  4. Enjoy your perfectly cleaned-up message!

What Problem Does This Solve?

This script is for users who value a clean, consistent, and immersive roleplaying experience. It saves you the tedious manual effort of editing each message to:

  • Add asterisks for narration.
  • Delete the AI's internal thoughts (<think>...).
  • Fix other formatting inconsistencies.

Stop editing and start chatting!


Note: This script is optimized for the PC/Desktop layout of Chub.AI. If you are on a mobile device, please use the dedicated Mobile Version for correctly positioned buttons and a better experience.

In screenshots you can see an example message before and after clicking the edit button.