Skip to content

Instantly share code, notes, and snippets.

@lithid
Created September 18, 2011 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lithid/1224687 to your computer and use it in GitHub Desktop.
Save lithid/1224687 to your computer and use it in GitHub Desktop.
Remove the favicons in firefox 7 since its not available for linux!
#!/bin/bash
# Written by lithid for FF7
pro_path=$(find ~/ -iname firefox |grep .mozilla)
short=$(grep 'Path' ~/.mozilla/firefox/profiles.ini |cut -f 2 -d'=')
doesit=$(find $pro_path/$short -type f |grep .mozilla | egrep -ico userChrome.css)
if [ "$doesit" = "0" ]; then
mkdir -p $pro_path/$short/chrome
echo_path="$pro_path/$short/chrome"
cd $echo_path
echo '.bookmark-item > .toolbarbutton-icon {
display: none !important;
}' > userChrome.css
exit 1
elif [ "$doesit" = "1" ]; then
echo_path="$pro_path/$short/chrome"
cd $echo_path
echo '.bookmark-item > .toolbarbutton-icon {
display: none !important;
}' >> userChrome.css
exit 1
else
echo "An unknown error has occured please send an email to long.jeremie@gmail.com."
fi
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment