Reddit Auto RTL (posts & comments)

Auto-detect RTL text on reddit and set direction/text-align for those blocks (posts, comments, inputs). Works on new.reddit.com and old.reddit.com. Uses MutationObserver for live content.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

Autor
Aboda7m
Denně instalací
0
Celkem instalací
1
Hodnocení
0 0 0
Verze
1.1.1
Vytvořeno
23. 11. 2025
Aktualizováno
23. 11. 2025
Size
10,3 KB
Licence
MIT
Spustit na

Reddit Auto RTL (posts & comments)

Auto-detect RTL text on Reddit and set direction/text-align for those blocks (posts, comments, inputs). Works on new.reddit.com and old.reddit.com. Uses MutationObserver for live content.

Features

  • Detects Arabic and other RTL scripts
  • Applies direction: rtl and text-align: right to posts, comments, titles and input fields when appropriate
  • Preserves inline code and pre blocks so monospace alignment is not broken
  • Live updates for dynamically loaded content
  • Lightweight - no external dependencies

Installation

  1. Install a userscript manager like Tampermonkey, Greasemonkey, or Violentmonkey.
  2. Create a new userscript and paste the contents of reddit-auto-rtl.user.js, or install the raw file if hosted.
  3. Reload Reddit.

Files

  • reddit-auto-rtl.user.js - the userscript file
  • README.md - this file
  • LICENSE - MIT license

Usage

  • The script runs automatically on https://*.reddit.com/*.
  • Input fields automatically flip direction while you type.
  • If a container has an explicit dir attribute, the script will not override it.

Contributing

  • Fork, improve, open a pull request.
  • Keep changes small and focused.
  • If you add tests, include instructions and a test runner.

Changelog

  • 1.1.1 - Metadata updates and minor cleanup (author, license)
  • 1.1 - Initial public release with robust RTL detection and MutationObserver
  • 1.0 - Proof of concept

License

MIT

Author

Aboda7m GitHub: https://github.com/Aboda7m/reddit-auto-rtl