JanitorAI - Message Formatting Corrector (Mobile)

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

Versión del día 03/10/2025. Echa un vistazo a la versión más reciente.

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @require https://update.greatest.deepsurf.us/scripts/551459/1671109/JanitorAI%20-%20Message%20Formatting%20Corrector%20%28Mobile%29.js

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
accforfaciet
Versión
4.0
Creado
03/10/2025
Actualizado
03/10/2025
Tamaño
12.4 KB
Licencia
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.