]> git.rmz.io Git - dotfiles.git/blob - dwb/userstyles/update
27e874dbc13051bebf85e38a98f67e28b45669ce
[dotfiles.git] / dwb / userstyles / update
1 #! /bin/bash
2
3 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
4
5 declare -A sites
6
7 sites[github.com.css]="https://github.com/StylishThemes/GitHub-Dark/raw/master/github-dark.css"
8 sites[wikipedia.org.css]="https://github.com/StylishThemes/Wikipedia-Dark/raw/master/wikipedia-dark.css"
9 sites[stackoverflow.com.css]="https://github.com/StylishThemes/StackOverflow-Dark/raw/master/stackoverflow-dark.css"
10
11 for file in "${!sites[@]}"; do
12 wget "${sites[$file]}" -O "$DIR/$file"
13 sed '/@-moz-document/d;/^}/d' -i "$DIR/$file"
14 done