nimab / chatGPT for Persians (Professional rtl, Easy shortkeys, Support multi language and for coder users)


Version: 1+34a3279 updated

Summary: Fix rtl text issues for Persian/Farsi language. Press R+RIGHT for full rtl. R+LEFT for rtl align left. and R + DOWN for deactivation.


License: GPL-3.0-or-later;

License: CC-BY-NC-SA-4.0;

Right-to-Left Text Adjustment Script for Persian/Farsi Language and Other RTL Languages on chatGPT


This userscript is tailored for chatGPT and is designed to enhance the browsing experience for Persian/Farsi language websites and other right-to-left (RTL) languages like Arabic, Urdu, etc. It dynamically adjusts the text alignment and direction of content, ensuring a more readable and user-friendly layout for RTL languages. The script is especially beneficial for chatGPT that do not natively support RTL text alignment or have mixed content.


  • Automatically adjusts text direction to RTL for body content on chatGPT, excluding <code> tags, to better accommodate Persian/Farsi and other RTL languages like Arabic, Urdu, etc.
  • Keyboard shortcuts for toggling text alignment between left and right within an RTL layout, enhancing readability for RTL languages.
  • Ensures that <pre> and <code> tags maintain left-to-right (LTR) direction for better code block readability.
  • Improved list readability: Fixed issues with unreadable list displays, ensuring that lists are now clearly and properly formatted.
  • Chat history menu positioning: Updated the script to maintain the original position of the chat history menu in the navbar. This update prevents the chat history menu from shifting to the right and keeps its contents organized.
  • Easy-to-use keyboard shortcuts for quick toggling on chatGPT:
    • Press 'R' + Left Arrow to apply RTL with left text alignment for RTL languages.
    • Press 'R' + Right Arrow to apply RTL with right text alignment for RTL languages.
    • Press 'R' + Down Arrow to toggle the styles on and off on chatGPT.

How to Install

  1. Ensure you have a userscript manager like Tampermonkey or Greasemonkey installed in your browser.
  2. Click on the script installation link for chatGPT.
  3. The userscript manager should prompt you to install the script - follow the instructions provided by the extension.


Open and login and use the keyboard shortcuts to adjust the text direction and alignment as needed. The script runs automatically on page load on chatGPT, applying a default RTL style with left text alignment for RTL languages.


This script is intended for use with Persian/Farsi language websites and other RTL languages like Arabic, Urdu, etc., on It may not produce the desired effects on other websites.

اسکریپت تنظیم متن راست به چپ برای زبان فارسی در چت جی پی تی


این یوزراسکریپت برای چت جی پی تی طراحی شده و به منظور بهبود تجربه مرور وب برای وب‌سایت‌های زبان فارسی و سایر زبان‌های راست‌چین مثل عربی، اردو و غیره می‌باشد. این اسکریپت به صورت دینامیکی تنظیم جهت و تراز متن را انجام می‌دهد، تا اطمینان حاصل شود که چیدمان متن برای زبان‌های راست‌چین خوانا‌تر و کاربرپسند‌تر است. خصوصا برای کسانی که بصورت دو زبانه با چت جی پی تی کار میکنند یا مشغول کد زدن هستند و با بلاک های کد سروکار دارند بهینه سازی شده است.

Rating: 0