Created
September 18, 2011 03:25
-
-
Save lithid/1224687 to your computer and use it in GitHub Desktop.
Remove the favicons in firefox 7 since its not available for linux!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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