Advertisement
Guest User

Remove Firefox Favicons in Ubuntu

a guest
May 3rd, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.20 KB | None | 0 0
  1.     #!/bin/bash
  2.     pro_path=$(find ~/ -iname firefox |grep .mozilla)
  3.     long=$(grep 'Path' ~/.mozilla/firefox/profiles.ini)
  4.     short=${long:5:20}
  5.     doesit=$(find $pro_path/$short/chrome -type f |grep .mozilla | egrep -ico userChrome.css)
  6.      
  7.     if [ "$doesit" = "0" ]; then
  8.             touch $pro_path/${short}/chrome/userChrome.css
  9.             echo_path="$pro_path/${short}/chrome"
  10.             cd $echo_path
  11.             echo ".bookmark-item > .toolbarbutton-icon {" >> userChrome.css
  12.             echo "display: none !important;" >> userChrome.css
  13.             echo "}" >> userChrome.css
  14.             echo "userChrome.css written restart your browser!"
  15.             exit 1
  16.     elif [ "$doesit" = "1" ]; then
  17.             echo_path="$pro_path/${short}/chrome"
  18.             cd $echo_path
  19.             echo "" >> userChrome.css
  20.             echo ".bookmark-item > .toolbarbutton-icon {" >> userChrome.css
  21.             echo "display: none !important;" >> userChrome.css
  22.             echo "}" >> userChrome.css
  23.             echo "userChrome.css updated restart your browser!"
  24.             exit 1
  25.     else
  26.             echo "An unknown error has occured please send an email to long.jeremie@gmail.com."
  27.     fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement