Last active
October 25, 2020 10:23
-
-
Save tyjak/5e4649253bd023e5af4cdb5fefa541d2 to your computer and use it in GitHub Desktop.
update adblock and install adblock in vimb if need it
This file contains hidden or 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
#!/bin/sh | |
# install and update adblock as https://github.com/Docbroke did it here https://github.com/fanglingsu/vimb/issues/430#issuecomment-367570464 | |
# Gist: 5e4649253bd023e5af4cdb5fefa541d2 | |
if [ ! -L /usr/lib/vimb/adblock.so ]; then | |
notify-send --urgency=normal "installing adblock plugin" | |
sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb | |
fi | |
notify-send --urgency=normal "updating adblock" | |
wget https://easylist.to/easylist/easylist.txt -O ~/.config/wyebadblock/easylist.txt && notify-send --urgency=normal "adblock update done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment