A browser extension to enhance the user experience in Google's AI Studio by providing customizable Right-to-Left (RTL) and Left-to-Right (LTR) text direction controls. Perfect for users working with RTL languages like Persian, Arabic, or Hebrew.
This tool gives you granular control over the text direction of the main prompt area, code blocks, and code block headers, allowing you to create a comfortable and productive environment.
- One-Click Toggle: Easily enable or disable all custom styles with a single button.
- Persistent Settings: Your preferred settings are automatically saved and applied whenever you open AI Studio.
- Advanced Customization: An expandable "Advanced Settings" menu lets you fine-tune the experience:
- Set the direction (RTL/LTR) for the main container.
- Independently set the direction for code blocks.
- Set the text alignment (Left/Right/Center) for code blocks to maintain readability.
- Control the direction of code block headers.
 
- Set the direction (
- Reset to Defaults: A convenient reset button restores the default recommended settings without disabling the extension.
- Cross-Browser Support: Works seamlessly on Google Chrome, Microsoft Edge, and Mozilla Firefox.
| Popup Menu | Before & After | 
|---|---|
|  |  | 
First, clone or download this repository to your local machine.
git clone https://github.com/MahDN/AI-Studio-Styler.gitThen, follow the instructions for your specific browser.
- Open Chrome and navigate to chrome://extensions.
- Enable Developer mode using the toggle switch in the top-right corner.
- Click the Load unpacked button.
- In the file selection dialog, navigate to the AI-Studio-Stylerfolder and select theChromesubfolder.
- The extension is now installed and ready to use!
- Open Edge and navigate to edge://extensions.
- Enable Developer mode using the toggle switch in the bottom-left corner.
- Click the Load unpacked button.
- In the file selection dialog, navigate to the AI-Studio-Stylerfolder and select theEdgesubfolder.
- The extension will now be active.
- Open Firefox and navigate to about:debugging.
- In the left-hand menu, click on This Firefox.
- Click the Load Temporary Add-on… button.
- In the file selection dialog, navigate to the Firefoxsubfolder inside theAI-Studio-Stylerproject and select themanifest.jsonfile.
- The extension will be installed for your current browser session. Note: Temporary add-ons in Firefox are removed when you close the browser.
This repository is organized with separate folders for each browser to handle their specific manifest.json requirements and JavaScript API differences.
AI-Studio-Styler/
├── Chrome/
│   ├── manifest.json
│   ├── popup.html
│   ├── popup.js
│   └── content.js
├── Edge/
│   ├── manifest.json
│   └── ... (all other shared files)
├── Firefox/
│   ├── manifest.json
│   └── ... (all other shared files)
├── res/
│   ├── Popup.png
│   └── Before-After.png
├── README.md
└── LICENSE
- Publish the extension to the official Chrome, Edge, and Firefox add-on stores for easy installation.
- Add a dark mode theme for the popup menu.
- Explore options for customizing font sizes or colors.
- Refactor the codebase to use a build script that generates browser-specific packages from a single source.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the Project
- Create your Feature Branch (git checkout -b feature/AmazingFeature)
- Commit your Changes (git commit -m 'Add some AmazingFeature')
- Push to the Branch (git push origin feature/AmazingFeature)
- Open a Pull Request
Distributed under the MIT License. See LICENSE file for more information.