2017-07-17 08:10:19 +00:00
|
|
|
# wyebadblock
|
2018-01-01 13:52:12 +00:00
|
|
|
An adblock extension for [wyeb](https://github.com/jun7/wyeb), also webkit2gtk browsers.
|
2017-07-17 08:18:17 +00:00
|
|
|
|
|
|
|
most of code of this are from https://github.com/GNOME/epiphany/tree/master/embed/web-extension
|
|
|
|
|
|
|
|
|
|
|
|
### usage:
|
|
|
|
|
2017-07-17 08:18:49 +00:00
|
|
|
make
|
|
|
|
make install
|
2017-07-17 08:18:17 +00:00
|
|
|
|
|
|
|
then
|
2017-07-18 01:23:41 +00:00
|
|
|
copy **easylist.txt** to ~/.config/wyebadblock
|
2017-07-17 08:18:17 +00:00
|
|
|
|
|
|
|
this only checks 'easylist.txt'
|
|
|
|
|
2018-01-02 01:07:34 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Setting chars(whatever) to the env value $DISABLE_ADBLOCK disables adblock.
|
|
|
|
|
|
|
|
For source code:
|
|
|
|
set string ";adblock:false;" as user data of the
|
|
|
|
webkit_web_context_set_web_extensions_initialization_user_data;
|
|
|
|
|
|
|
|
|
2018-01-01 13:56:19 +00:00
|
|
|
---
|
2018-01-01 13:52:12 +00:00
|
|
|
|
2018-01-01 13:55:44 +00:00
|
|
|
## webkit2gtk browsers
|
2018-01-01 13:53:19 +00:00
|
|
|
On Arch Linux
|
|
|
|
|
2018-01-01 13:52:12 +00:00
|
|
|
### luakit
|
|
|
|
|
|
|
|
sudo ln -s /lib/wyebrowser/adblock.so /lib/luakit
|
|
|
|
|
|
|
|
### vimb
|
|
|
|
|
|
|
|
sudo ln -s /lib/wyebrowser/adblock.so /lib/vimb
|
|
|
|
|
|
|
|
### lariza
|
|
|
|
|
|
|
|
mkdir -p ~/.config/lariza/web_extensions
|
|
|
|
ln -s /lib/wyebrowser/adblock.so ~/.config/lariza/web_extensions
|