dragon-bn / firefox-extensions-autoinstall

A small bash script to install automatically a small set of extensions for firefox based browsers

Repository from Github https://github.comdragon-bn/firefox-extensions-autoinstallRepository from Github https://github.comdragon-bn/firefox-extensions-autoinstall

firefox-extensions-autoinstall

detects any profile directory inside the .mozilla/firefox, .mozilla/firefox-developer-edition, and Tor’s profile directory (tor-browser_en-US/Browser/TorBrowser/Data/Browser/profile.default. The script works with any profile it finds that is firefox based. If the extension .xpi file is already downloaded to /tmp, it won't be downloaded again, saving time.

to do - add extension for Secure SNI, make the script work again (isnt working as of today, I believe its due to how firefox based browsers handle extension signing, i am working on a solution)

prerequisites

sudo apt-get install jq

Extension List

  1. Bitwarden Password Manager
  2. OpenVideo
  3. Lingva
  4. NoScript
  5. Buster Captcha Solver
  6. Archive
  7. Search by Image
  8. Privacy Possum
  9. Privacy Badger
  10. Location Guard
  11. Flagfox
  12. Ghostery
  13. Fake Filler
  14. DuckDuckGo Privacy Suite
  15. Disconnect
  16. Disable WebRTC
  17. Decentraleyes
  18. Dark Reader
  19. ClearURLs
  20. CanvasBlocker
  21. User-Agent String Switcher
  22. AdNauseam
  23. WhatCampaign
  24. Violent Monkey
  25. uBlock Origin
  26. HackTools
  27. JavaScript Restrictor
  28. Hackbar v2

Use Guide - Linux

Save the Script: ffeail.sh

Make it Executable: chmod +x ffeail.sh

Run: ./ffeail.sh

Use Guide - Windows (gross, ew, yuck)

1.Install WSL: Open PowerShell as Administrator and run: wsl --install Restart your system if prompted.

Install a Linux Distro Windows Subsystem:

After restarting, set up your preferred Linux distribution (e.g., Kali linux) through the Microsoft Store.

Access WSL and Run the Script:

Once WSL is installed, open a WSL terminal (you can type wsl in PowerShell).
Copy the Bash script to the WSL file system or open the script from a Windows directory in WSL (e.g., /mnt/c/Users/YourUsername/Downloads/install_firefox_extensions.sh).

Then you can make the script executable:

chmod +x install_firefox_extensions.sh

Run the script in WSL:

    ./install_firefox_extensions.sh

Accessing Firefox Profiles on Windows:
Firefox profiles are stored in C:\Users<YourUsername>\AppData\Roaming\Mozilla\Firefox\Profiles. In WSL, you can access them via /mnt/c/Users/ /AppData/Roaming/Mozilla/Firefox/Profiles.

Update the process_profiles function to point to this path:

process_profiles "Firefox" "/mnt/c/Users/YourUsername/AppData/Roaming/Mozilla/Firefox"

There you go you windows using plebs, switch to linux goddamnit

useful things that im using for ideas, notes to self

Global addon install

If you want to install an extension automatically to all users in your system you need to extract it, rename the folder that contains the addon to the addon's id string and copy it to the firefox global extensions folder /usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/, anything that you use there will be called up automatic when a user opens firefox. User specific install

If you want to install an extension automatically to just one user in your system you need to extract it, rename the folder that contains the addon to the addon's id string and copy it to the firefox user extensions folder /home/user_name/.mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/ (create it if it does not exist), anything that you use there will be called up automatic when a user opens firefox. How-to prepare an addon for automatic install - Example

Make an extensions folder in your home and download the addon in to it

mkdir ~/extensions cd ~/extensions wget https://addons.mozilla.org/firefox/downloads/latest/1865/addon-1865-latest.xpi

Extract it and delete the original

unzip ~/extensions/addon-1865-latest.xpi rm ~/extensions/addon-1865-latest.xpi

Read the first line in the install.rdf file to get the addon's id (in this case it will be {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}). and create a folder with that name

mkdir ~/extensions/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}

Move all the files in your extensions folder into the newly created ~/extensions/{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} and you are ready to install by moving the {d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d} folder, as described, for a local install or for a global install. How-to set the default home page

To change your homepage without using the preferences inside firefox you have to edit ~/.mozilla/firefox/*.default/prefs.js (where *.default is a folder inside ~/.mozilla/firefox created for your user) and add this line to the end of it

user_pref("browser.startup.homepage", "http://uptechtalk.com");

or using this command

echo "user_pref("browser.startup.homepage", "http://uptechtalk.com");" >> ~/.mozilla/firefox/*.default/prefs.js

You need to do it after closing firefox or the program will overwrite the setting on exit.

If your user has not used firefox yet and you want to set the homepage for all new users (set homepage globally) use this command

echo "user_pref("browser.startup.homepage", "http://uptechtalk.com");" >> /etc/xul-ext/ubufox.js

About

A small bash script to install automatically a small set of extensions for firefox based browsers

License:GNU Affero General Public License v3.0


Languages

Language:Shell 100.0%