Auto RTL for AI Chatbots (Arabic & Persian)

Automatically detects Arabic/Persian text in ChatGPT, Gemini, and Grok and applies Right-to-Left (RTL) formatting.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

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

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
AmirRezaTamandani
일일 설치 수
2
총 설치 수
8
평점
0 0 0
버전
1.1
생성일
2026-07-08
갱신일
2026-07-12
크기
2.34KB
라이선스
MIT
적용 사이트

Auto RTL for AI Chatbots: The Fix for Persian & Arabic Reading right-to-left languages like Persian (Farsi) and Arabic in default left-to-right (LTR) AI chat interfaces is a broken experience. Punctuation lands on the wrong side, sentence structure visually collapses, and reading long responses becomes a chore.

This script automatically detects RTL characters in AI responses and instantly corrects the text direction and alignment, restoring natural readability.

Features Zero-Click Activation: Runs automatically in the background. If the AI replies in Persian or Arabic, the text instantly aligns to the right and switches to dir="rtl".

Smart Detection: Uses Unicode ranges to target paragraphs containing Arabic/Persian scripts without affecting English text.

Code-Block Safe: Explicitly ignores

 and  blocks so your programming outputs remain strictly LTR and correctly formatted.

High-Performance: Uses a lightweight MutationObserver to flip text chunks instantly as they stream onto the page, avoiding layout thrashing or browser lag.

Supported Platforms ChatGPT (chatgpt.com)

Google Gemini (gemini.google.com)

Grok (x.com/i/grok)

Pro-Tip: Vazirmatn Font Integration Proper localization isn't just about direction; it's about typography. The script includes a commented-out line to apply the Vazirmatn font. If you value clean Persian web typography, simply open the script in Tampermonkey and uncomment this line:

JavaScript // el.style.fontFamily = 'Vazirmatn, Tahoma, Arial, sans-serif'; About the Author Built by Amir Reza Tamandani (TMAN) to enforce proper RTL layout rules and better localization for the frontend web community.