Skip to content

hamzabellouch/rtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RTL Extension

A modern, lightweight, and powerful browser extension to detect and toggle the page layout direction between RTL (Right-to-Left) and LTR (Left-to-Right) on any website.

Compatible with all major browsers: Chrome, Brave, Edge, Opera (Chromium-based) and Mozilla Firefox.

⭐ Features

  • Easy Toggling: Switch document layout direction between RTL and LTR with a single click.
  • Smart Detection: Automatically detects the current page direction.
  • Visual Feedback: Displays status badge on the extension icon.
  • Clean Code: Lightweight and fast extension with zero performance impact.

📁 Repository Structure


├── chromium/          # Extension build directory for Chrome, Brave, Edge, etc.
│   ├── images/        # Extension icons
│   ├── background.js  # Service worker handling runtime actions
│   ├── manifest.json  # Chromium Manifest V3 configuration
│   ├── rtl-init-check.js # Page script to initialize layout check
│   └── rtl-toggle.js  # Content script to toggle document direction
│
├── firefox/           # Extension build directory for Mozilla Firefox
│   ├── images/        # Extension icons
│   ├── background.js  # Event page handling runtime actions
│   ├── manifest.json  # Firefox Manifest V3 configuration (with Gecko ID)
│   ├── rtl-init-check.js # Page script to initialize layout check
│   └── rtl-toggle.js  # Content script to toggle document direction
│
└── .gitignore         # Prevents tracking of OS metadata, IDE configurations, etc.

⚙️ Installation & Usage

🌐 For Chromium-Based Browsers (Chrome, Brave, Edge, Opera)

  1. Open your Chromium-based browser and navigate to:

    • Google Chrome / Brave / Opera: chrome://extensions/
    • Microsoft Edge: edge://extensions/
  2. Enable Developer mode.

  3. Click Load unpacked.

  4. Select the following directory:

chromium/
├── images/
├── background.js
├── manifest.json
├── rtl-init-check.js
└── rtl-toggle.js
  1. The extension will be installed and is now ready to use.

🦊 For Mozilla Firefox

  1. Open Mozilla Firefox and navigate to about:debugging#/runtime/this-firefox.
  2. Click Load Temporary Add-on....
  3. Select the following file:
firefox/
└── manifest.json
  1. The extension is now loaded as a temporary add-on.

🛡️ Privacy & Safety

  • Local Processing: All actions and direction toggles are executed locally in your browser. No data is collected or sent to external servers.
  • Minimal Permissions: The extension only uses activeTab and scripting permissions to apply direction changes securely on the active tab when clicked.

Warning

There is always a possibility of error, so we assume no responsibility for any inaccuracies.

Copyright © 2026

Thank you for engaging with us. For inquiries or collaboration, please contact:
hamzabellouchcontact@gmail.com

Stay connected and follow us on:
Facebook | Instagram | Twitter | Telegram | LinkedIn

About

Easily toggle webpage direction (RTL/LTR) on any website with a single click. Compatible with all Chromium browsers and Firefox.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors