X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/148295024c93e47f90ac850bf068e592b16b1c7c..5a68a96d656e686f632dd805bafe462b1e19bc70:/dwb/userstyles/update diff --git a/dwb/userstyles/update b/dwb/userstyles/update new file mode 100755 index 0000000..79b1abc --- /dev/null +++ b/dwb/userstyles/update @@ -0,0 +1,14 @@ +#! /bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +declare -A sites + +sites[github.com.css]="https://github.com/StylishThemes/GitHub-Dark/raw/master/github-dark.css" +sites[wikipedia.org.css]="https://github.com/StylishThemes/Wikipedia-Dark/raw/master/wikipedia-dark.css" +sites[stackoverflow.org.css]="https://github.com/StylishThemes/StackOverflow-Dark/raw/master/stackoverflow-dark.css" + +for file in "${!sites[@]}"; do + wget "${sites[$file]}" -O "$DIR/$file" + sed '/@-moz-document/d;/^}/d' -i "$DIR/$file" +done