Guest User

firetron

a guest
Jul 21st, 2021
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. #!/bin/bash
  2. firefox -CreateProfile "$1"
  3. cd .icons
  4. wget -O $1.png $2/favicon.ico
  5. sudo touch "/usr/share/applications/$1.desktop"
  6. echo "[Desktop Entry]
  7. Version=1.0
  8. Type=Application
  9. Exec=firefox -p $1 -url=$2
  10. Name=$1
  11. Icon=$HOME/.icons/$1.png
  12. Categories=Network"  | sudo tee -a "/usr/share/applications/$1.desktop"
  13. cd $HOME/.mozilla/firefox/"$(grep 'Path=' ~/.mozilla/firefox/profiles.ini | sed s/^Path=// | grep "$1")"
  14. touch user.js
  15. echo 'user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true);'>> user.js
  16. mkdir chrome
  17. cd chrome
  18. touch userChrome.css
  19. echo '
  20. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  21. #TabsToolbar {visibility: collapse;}
  22. #navigator-toolbox {visibility: collapse;}
  23. browser {margin-right: -14px; margin-bottom: -14px;}' >> userChrome.css
  24.  
Advertisement
Add Comment
Please, Sign In to add comment