Last active
April 25, 2018 04:22
-
-
Save JackyChiu/2a8c1ae7af883bf44a3d013c45624fe6 to your computer and use it in GitHub Desktop.
MacOS: Setup a Symlink for your userChrome.css
This file contains hidden or 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 | |
profiles=~/Library/Application\ Support/Firefox/Profiles | |
if ! [[ -d $profiles ]]; then | |
echo "Looks like firefox isn't installed" | |
exit 1 | |
fi | |
for dir in $(ls "$profiles"); do | |
[[ $dir != *default ]] && exit 1 | |
! [[ -d "$profiles/$dir/chrome" ]] && mkdir -p $profiles/$dir/chrome | |
ln -snf $(pwd)/userChrome.css "$profiles/$dir/chrome" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment