chatGPT for Persians

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.

Ajankohdalta 22.11.2023. Katso uusin versio.

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

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Tekijä
Nimab
Arvostelut
0 0 0
Versio
1
Luotu
22.11.2023
Päivitetty
22.11.2023
Size
2,94 kt
Lisenssi
CC BY-NC-SA 4.0 DEED
Käytössä

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

## Description
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.

## Features
- Automatically adjusts text direction to RTL for body content on chatGPT, excluding `` 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 `

` and `` tags maintain left-to-right (LTR) direction for better code block readability.
- 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.

## Usage
Open and login chat.openai.com 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.

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