This script provides an easy way to install the fx-autoconfig system on Firefox-based browsers, including:
- Firefox
- Firefox ESR
- Zen Browser
- Zen Twilight
- LibreWolf
- Waterfox
- And other Firefox derivatives
fx-autoconfig lets you run custom JavaScript in your browser, allowing for extensive customization beyond what's possible with just CSS.
- Interactive Installation: Simple menu-driven interface
- Auto-detection: Automatically finds Firefox-based browsers and profiles
- Profile Selection: Choose which profile to install to
- Multiple Browser Support: Works with a wide variety of Firefox derivatives
- Backup System: Creates automatic backups before making any changes
- Restore Function: Easily restore from previous backups
- Test Verification: Includes a visual test to confirm successful installation
- Git (to download the fx-autoconfig repository)
- Bash shell
- sudo privileges (to install files to system directories)
-
Make the script executable:
chmod +x autoconfig-auto.sh -
Run the script:
./autoconfig-auto.sh -
Follow the interactive prompts to:
- Choose between installation or restoration
- Select your browser installation
- Select your profile
-
After installation, restart your browser and:
- Press Ctrl+Shift+J to open the Browser Console
- Look for a "USERCHROME.JS TEST - MANAGER WORKING!" message
- Note the green bar at the top of your browser window
If you don't see these indicators, go to about:support in your address bar and click "Clear Startup Cache..." in the top-right corner.
After installation:
-
Custom scripts go in:
[profile-dir]/chrome/JS/- Use
.uc.jsextension for standard scripts - Use
.uc.mjsextension for ES6 module scripts - Use
.sys.mjsextension for background scripts
- Use
-
Custom styles go in:
[profile-dir]/chrome/CSS/- Use
.uc.cssextension
- Use
-
Resources (images, etc.) go in:
[profile-dir]/chrome/resources/ -
Manage your scripts and styles from the "User Scripts" menu in your browser's Tools menu.
The script automatically creates backups in ~/.fx-autoconfig-backups/[timestamp]/ before making changes.
To restore from a backup:
- Run the script
- Select option 2 (Restore from backup)
- Choose which backup to restore from
- Script Not Working: Clear the startup cache via
about:support - Can't Find Browser: Use manual entry mode and specify the directory path
- Can't Find Profile: Use manual entry mode and specify your profile path
- Permission Denied: Make sure you have the necessary permissions for the directories
This installer script was created to simplify the installation of fx-autoconfig, which was developed by MrOtherGuy.
- Original fx-autoconfig repository: https://github.com/MrOtherGuy/fx-autoconfig
The fx-autoconfig system allows arbitrary JavaScript to run with browser privileges. Only install scripts from sources you trust.
This installer script is provided under the same license as fx-autoconfig (MIT License).