Commit 0d3ae836 authored by Christian Duerr's avatar Christian Duerr

Refactor for new userstyle manager

Due to the new userstyle manager the old one has been removed. Files
also have been renamed to be more readable and symlinks were removed
that are not necessary anymore.
parent ba25af25
#!/bin/bash
# Use some black magic to get profile name from profiles.ini
# If you do not want to use the default profile, replace this with your profile name
PROFILE_NAME=$(cat $HOME/.mozilla/firefox/profiles.ini | tr -d "\n" | sed 's/.*Path=\(.*\)Default=1.*/\1/g')
# Create "chrome" dir if it does not exist
if [ ! -d "$HOME/.mozilla/firefox/$PROFILE_NAME/chrome" ];then
mkdir "$HOME/.mozilla/firefox/$PROFILE_NAME/chrome"
fi
# Locations of the userChrome.css and userContent.css files
USERCHROME_PATH="$HOME/.mozilla/firefox/$PROFILE_NAME/chrome/userChrome.css"
USERCONTENT_PATH="$HOME/.mozilla/firefox/$PROFILE_NAME/chrome/userContent.css"
### USERCONTENT for general modifications
cat ./userContent/_variables.css > $USERCONTENT_PATH # Variables
# Merge all userContent files, using their name as domain name
for style in $(ls -N ./userContent/[^_]*); do # Get files except for Vars
FILE=$(echo $style | cut -c 15-) # Remove "./userContent/"
URL=$(echo $FILE | rev | cut -c 5- | rev) # Remove ".css"
echo "@-moz-document $URL {" >> $USERCONTENT_PATH # Add @-moz-document header
cat ./userContent/"$URL".css >> $USERCONTENT_PATH # Add file content
echo "}" >> $USERCONTENT_PATH # Close @-moh-document header
done
# Add styles from userstyles.org
userstyles-manager >> $USERCONTENT_PATH
### USERCHROME for modifying FF UI
cat ./userChrome/_variables.css > $USERCHROME_PATH # Vars and open @-moz-document
cat ./userChrome/[^_]* >> $USERCHROME_PATH # Merge all files
echo "}" >> $USERCHROME_PATH # Close @-moz-document
......@@ -3,7 +3,7 @@
--fg-color: #9e9e9e;
--secondary-bg-color: #262626;
--secondary-fg-color: #616161;
--highlight-color: #702020;
--highlight-color: #752a2a;
}
/* Don't close this */
......
.autocomplete-richlistitem:not([selected="true"]) .ac-url,
.autocomplete-richlistitem:not([selected="true"]) .ac-separator,
.autocomplete-richlistitem:not([selected="true"]) .ac-action {
.autocomplete-richlistitem:not([selected="true"]):not(hover) .ac-url,
.autocomplete-richlistitem:not([selected="true"]):not(hover) .ac-separator,
.autocomplete-richlistitem:not([selected="true"]):not(hover) .ac-action {
color: var(--secondary-fg-color) !important;
}
.autocomplete-richlistitem:hover {
background-color: var(--highlight-color) !important;
border: unset !important;
}
.autocomplete-richlistitem:hover * {
color: var(--bg-color) !important;
}
../../undead-discord.css
\ No newline at end of file
../../undead-reddit.css
\ No newline at end of file
../../undead-twitter.css
\ No newline at end of file
[archlinux]
id = 89090
[github]
id = 37035
ik-base-color = "#616161"
ik-bg-url = ""
ik-code-wrap = ""
ik-font-choice = "Fira Mono"
ik-syntax-codemirror = "ik-cm-t-night-80s"
ik-syntax-jupyter = "ik-jp-t-night-80s"
ik-syntax-theme = "ik-TomorrowNight"
ik-tab-size = "4"
[wiki]
id = 122072
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment