-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from smurphos/nextupdate
20180827 release candidate
- Loading branch information
Showing
139 changed files
with
708 additions
and
28,418 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,25 @@ | ||
#!/bin/bash | ||
#Description: Helper file to write userContent.css to /$HOME/.mozilla/firefox/usersprofile.default folder in order to fix issues with text visibility in input fields with some themes | ||
cd ~/.mozilla/firefox/ | ||
if [[ $(grep '\[Profile[^0]\]' profiles.ini) ]]; then | ||
PROFPATH=$(grep -E '^\[Profile|^Path|^Default' profiles.ini | grep -1 '^Default=1' | grep '^Path' | cut -c6-); | ||
#Description: Helper file to write user.js to /$HOME/.mozilla/firefox/usersprofile.default folder in order to fix issues with text visibility in input fields with some themes | ||
if find "$HOME"/.mozilla/firefox/ -maxdepth 1 -type d -name '*.default' | head -1; then | ||
TARGETPATH=$(find "$HOME"/.mozilla/firefox/ -maxdepth 1 -type d -name '*.default' | head -1) | ||
TARGETFILE="$TARGETPATH/user.js" | ||
TARGETSTRING="user_pref(\"widget.content.gtk-theme-override\", \"Adwaita\");" | ||
if [ ! -f "$TARGETFILE" ]; then | ||
touch "$TARGETFILE" | ||
echo "creating file $TARGETFILE" | ||
echo "" | ||
fi | ||
if ! grep -q "widget.content.gtk-theme-override" "$TARGETFILE"; then | ||
echo "$TARGETSTRING" >> "$TARGETFILE" | ||
echo "writing string '$TARGETSTRING' to $TARGETFILE" | ||
echo "" | ||
echo "please restart Firefox for fix to take effect" | ||
else | ||
echo "$TARGETFILE already contains a widget.content.gtk-theme-override" | ||
fi | ||
else | ||
PROFPATH=$(grep 'Path=' profiles.ini | sed 's/^Path=//'); | ||
echo "could not locate your .default firefox profile" | ||
fi | ||
TARGETPATH="$HOME/.mozilla/firefox/$PROFPATH/chrome"; | ||
TARGETFILE="$HOME/.mozilla/firefox/$PROFPATH/chrome/userContent.css"; | ||
TARGETSTRING="input, textarea { color: #222; background: #eee; }"; | ||
if [ ! -d "$TARGETPATH" ]; then | ||
mkdir "$TARGETPATH"; | ||
echo "creating folder $TARGETPATH"; | ||
echo ""; | ||
fi | ||
if [ ! -f "$TARGETFILE" ]; then | ||
touch "$TARGETFILE"; | ||
echo "creating file $TARGETFILE"; | ||
echo ""; | ||
fi | ||
echo "$TARGETSTRING" >> "$TARGETFILE"; | ||
echo "writing string '$TARGETSTRING' to $TARGETFILE"; | ||
echo ""; | ||
echo "please restart Firefox for fix to take effect"; | ||
echo ""; | ||
read -p "Press enter to exit the script."; | ||
cd; | ||
exit; | ||
echo "" | ||
read -rp "Press enter to exit the script." | ||
exit |
Oops, something went wrong.