Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- pro_path=$(find ~/ -iname firefox |grep .mozilla)
- long=$(grep 'Path' ~/.mozilla/firefox/profiles.ini)
- short=${long:5:20}
- doesit=$(find $pro_path/$short/chrome -type f |grep .mozilla | egrep -ico userChrome.css)
- if [ "$doesit" = "0" ]; then
- touch $pro_path/${short}/chrome/userChrome.css
- echo_path="$pro_path/${short}/chrome"
- cd $echo_path
- echo ".bookmark-item > .toolbarbutton-icon {" >> userChrome.css
- echo "display: none !important;" >> userChrome.css
- echo "}" >> userChrome.css
- echo "userChrome.css written restart your browser!"
- exit 1
- elif [ "$doesit" = "1" ]; then
- echo_path="$pro_path/${short}/chrome"
- cd $echo_path
- echo "" >> userChrome.css
- echo ".bookmark-item > .toolbarbutton-icon {" >> userChrome.css
- echo "display: none !important;" >> userChrome.css
- echo "}" >> userChrome.css
- echo "userChrome.css updated restart your browser!"
- exit 1
- else
- echo "An unknown error has occured please send an email to long.jeremie@gmail.com."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement