A FireFox Addon designed to fix Right-to-Left (RTL) and Left-to-Right (LTR) text alignment issues in real-time, primarily for Persian users, with support for other RTL languages like Arabic. This tool ensures seamless text rendering on websites, especially when using browser translation tools (e.g., Google Translate) or LLM,s without requiring a page refresh.
- Real-Time Fixes: Automatically adjusts text direction and alignment as content changes (e.g., during translation).
- Language Detection: Smart detection of RTL (Persian, Arabic, etc.) and LTR (English, etc.) text with customizable thresholds.
- Blacklist Management: Add or remove websites from a blacklist to exclude them from processing.
- User-Friendly Interface: A sleek popup with toggle, blacklist view.
- Optimized Performance: Lightweight and efficient, with minimal resource usage.
Directly Install(Recomended): https://addons.mozilla.org/en-US/firefox/addon/rtl-content-fixer/
Manual
-
Clone or Download: git clone https://github.com/jalalvandi/FireFox-RTL-Content-Fixer Or download the ZIP file and extract it.
-
Load in FireFox:
- Open FireFox and go to addon manager (about:addons).
- Click on the gear icon and select the debug addon option.
- Click "Load temporary addon" and select the folder containing the extension files (manifest.json, etc.).
- Select manifest.json file.
- Verify:
- The extension icon should appear in your firefox toolbar. Click it to access the popup.
- Toggle On/Off: Enable or disable the extension with a single click.
- Exclude Sites: Add a site to the blacklist if you don’t want the extension to run on it.
- Open a web page containing Persian and English texts.
- Watch as the extension instantly adjusts the text direction to RTL—no refresh needed!
- manifest.json: Extension configuration.
- content.js: Core logic for real-time text fixing.
- styles.css: CSS overrides for RTL/LTR styling.
- popup.html: Popup interface.
- popup.js: Popup functionality and settings management.
- icon.png,: Extension icons (replace with your own if desired).
Want to contribute or customize? Here’s how:
- Fork the Repository: Click "Fork" on GitHub and clone your fork.
- Modify the Code: Edit the JavaScript, CSS, or HTML files as needed.
- Test Locally: Reload the extension in FireFox after changes (about:addons > "Reload").
- Submit a Pull Request: Share your improvements with the community!
This project is open-source under the Apache-2.0 License (License).
Developed by Sina Jalalvandi (mailto:[email protected]). Contributions and feedback are welcome!
Version: 1.2.0
Sign: RTL-Content-Fixer-20250411-2b41e5b80cb9-6043bf2b1d990d53dea54625ac23513f