Firefox Browser Add-ons
  • Extensions
  • Themes
    • for Firefox
    • Dictionaries & Language Packs
    • Other Browser Sites
    • Add-ons for Android
Log in
Preview of Smart RTL — راست‌نویس هوشمند

Smart RTL — راست‌نویس هوشمند by hadi

Auto-aligns Persian, Arabic, Hebrew, Urdu and other RTL text to the right, and English/LTR to the left — without breaking code blocks or centered text. Per-site on/off control. No data collected.

Available on Firefox for Android™Available on Firefox for Android™
0 (0 reviews)0 (0 reviews)
Download Firefox and get the extension
Download file

Extension Metadata

About this extension
Smart RTL automatically fixes mixed-direction web pages.

It detects the direction of each text block from its first strong directional character (the Unicode bidi rule):
• Persian, Arabic, Hebrew, Urdu and other RTL lines → right-aligned (RTL)
• English and other LTR lines → left-aligned (LTR)

Why it’s smart:
• Code blocks (pre, code, Prism/highlight.js, CodeMirror/Monaco editors) always stay LTR — even if a line starts with a Persian or Arabic
comment.
• Centered and justified text is preserved (detected via computed style), so layouts never break.
• Works on dynamic pages and SPAs via an efficient, debounced observer.

Site control:
• On by default everywhere, with an exception list — or switch to allow-list mode (only sites you add).
• Toggle the current site or the whole add-on from the popup. Changes apply instantly, no reload.

Privacy: no data is collected or transmitted; all settings stay on your device.
Rated 0 by 0 reviewers
Log in to rate this extension
There are no ratings yet

Star rating saved

5
0
4
0
3
0
2
0
1
0
No reviews yet
Permissions and data

Required permissions:

  • Access your data for all websites

Data collection:

  • The developer says this extension doesn't require data collection.
Learn more
More information
Add-on Links
  • Support Email
  • Copy add-on ID
Version
1.0.1
Size
33.13 KB
Last updated
3 days ago (Jun 21, 2026)
Related Categories
  • Appearance
  • Language Support
License
MIT License
Version History
  • See all versions
Add to collection
Report this add-on
Go to Mozilla's homepage

Add-ons

  • About
  • Firefox Add-ons Blog
  • Extension Workshop
  • Developer Hub
  • Developer Policies
  • Community Blog
  • Forum
  • Report a bug
  • Review Guide

Browsers

  • Desktop
  • Mobile
  • Enterprise

Products

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Legal

Except where otherwise noted, content on this site is licensed under the Creative Commons Attribution Share-Alike License v3.0 or any later version. Android is a trademark of Google LLC.