Skip to content

Instantly share code, notes, and snippets.

@JackyChiu
Last active April 25, 2018 04:22
Show Gist options
  • Save JackyChiu/2a8c1ae7af883bf44a3d013c45624fe6 to your computer and use it in GitHub Desktop.
Save JackyChiu/2a8c1ae7af883bf44a3d013c45624fe6 to your computer and use it in GitHub Desktop.
MacOS: Setup a Symlink for your userChrome.css
#/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