JanitorAI - Message Formatting Corrector (Mobile)

Formats narration and dialogues, and removes <think> tags.

Version vom 03.10.2025. Aktuellste Version

Dieses Skript sollte nicht direkt installiert werden. Es handelt sich hier um eine Bibliothek für andere Skripte, welche über folgenden Befehl in den Metadaten eines Skriptes eingebunden wird // @require https://update.greatest.deepsurf.us/scripts/551459/1671108/JanitorAI%20-%20Message%20Formatting%20Corrector%20%28Mobile%29.js

Autor
accforfaciet
Version
4.0
Erstellt am
03.10.2025
Letzte Aktualisierung
03.10.2025
Größe
12,4 KB
Lizenz
MIT

Summary

Tired of inconsistent AI formatting and annoying <think> tags on JanitorAI? 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 Mobile users.

Features

  • Mobile-Optimized Interface: The formatting button (✏️) is placed conveniently for easy thumb access on mobile screens.
  • Keyboard-Aware: The button automatically hides when you tap the message input field to type, and reappears when you're done, preventing the on-screen keyboard from covering it.
  • One-Click Formatting: Just tap the button to clean up the last AI message.
  • 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 backticks (...), leaving spoken lines completely untouched.
  • Automatic Tag Removal: Instantly cleans up the AI's response by removing distracting tags like <think>, <thought>, <thoughts>, <system>, and <response>.
  • System Prompt Cleaner: Detects and removes prepended system prompts (e.g., "The user said...*") that sometimes leak into the AI's message.

How to Use

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

What Problem Does This Solve?

This script is for users who value a clean, consistent, and immersive roleplaying experience on their mobile devices. 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 Mobile layout of JanitorAI. If you are on a PC or desktop computer, please use the dedicated PC Version for a better layout.

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