You are not logged in.

#1 2018-01-03 03:23:10

jun7
Member
Registered: 2016-04-23
Posts: 7

adblock with easylist.txt for luakit, vimb, lariza and others

Hi
I had made a adblock extension for wyeb by copying
https://github.com/GNOME/epiphany/tree/ … -extension
Since it is webkit2gtk's extension, it should work on other webkit2gtk browsers.
So I tried it with following browsers and it works.

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


The extension is https://aur.archlinux.org/packages/wyebadblock-git/.
Install it and copy the easylist.txt to ~/.config/wyebadblock/

If your browser is not in the above list,
search 'webkit_web_context_set_web_extensions_directory' in source code
and make link from the dir to the wyebadblock as above.


Thank you.

Last edited by jun7 (2018-01-17 11:51:39)

Offline

#2 2018-01-17 07:07:51

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: adblock with easylist.txt for luakit, vimb, lariza and others

Wonderful, I will test with vimb, ASAP.

EDIT: this doesn't seem to work, I did install the aur package, did the ln -s step, and copied the easylist.txt, I am getting even more ads as compared to my /etc/hosts based blocking.

Last edited by Docbroke (2018-01-17 07:45:10)

Offline

#3 2018-01-17 09:37:52

jun7
Member
Registered: 2016-04-23
Posts: 7

Re: adblock with easylist.txt for luakit, vimb, lariza and others

Thank you for reporting.
What says the testing page below?
http://simple-adblock.com/faq/testing-your-adblocker/

I tested it with vimb-git. which version of vimb do you use?

Last edited by jun7 (2018-01-17 09:39:27)

Offline

#4 2018-01-17 09:48:06

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: adblock with easylist.txt for luakit, vimb, lariza and others

┌─[sharad] (03:12 PM)-(Wed Jan 17) !9972! [~]
└───▶ pacq vimb-git
vimb-git 3.0.0.r1490.d5901f5-1

┌─[sharad] (03:12 PM)-(Wed Jan 17) [~]
└───▶ pacq wyebadblock-git
wyebadblock-git 27.1798363-1

┌─[sharad] (03:13 PM)-(Wed Jan 17) [~]
└───▶ ls -l /lib/vimb/
lrwxrwxrwx  26 root 17 Jan 12:29 adblock.so -> /lib/wyebrowser/adblock.so
.rw-r--r-- 27k root  6 Dec  2017 webext_main.so

┌─[sharad] (03:13 PM)-(Wed Jan 17) [~]
└───▶ wc -l .config/wyebadblock
65058 .config/wyebadblock

for  http://simple-adblock.com/faq/testing-your-adblocker/

Testing adblocking: Not working
Testing element hiding: Not working

Offline

#5 2018-01-17 11:18:34

jun7
Member
Registered: 2016-04-23
Posts: 7

Re: adblock with easylist.txt for luakit, vimb, lariza and others

Seems perfect but adbloking is not working. Hmm.
Other conditions are
- echo $XDG_CONFIG_HOME is blank.
- Have to copy the easylist.txt before the extension is loaded. So have to close all vimb.
- I tested it only with default settings. Is there any settings what disables extensions of vimb?

If you made the pkg by makepkg, following steps can check whather wyebadblock found the easylist.txt or not.

cd src/wyebadblock
make cssoutput
./cssoutput

wyebadblock will crash if the easylist.txt is not found.

Offline

#6 2018-01-17 11:42:03

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: adblock with easylist.txt for luakit, vimb, lariza and others

It was misunderstanding on my part as I had copied  contents of easylist.txt to .config/wyebadblock instead of copying to .config/wyebadblcock/easylist.txt

now
Testing adblocking: Tested OK
Testing element hiding: Not working

Offline

#7 2018-01-17 11:51:12

jun7
Member
Registered: 2016-04-23
Posts: 7

Re: adblock with easylist.txt for luakit, vimb, lariza and others

Ah, I will add '/' to the description.

Testing element hiding: not warking is normal. it is not supported.
Even the ./cssoutput outputs css though in my experience, large user css crashes webkit2gtk.

Thank you!

Offline

#8 2018-01-30 00:36:22

nmeasure
Member
Registered: 2015-08-25
Posts: 3

Re: adblock with easylist.txt for luakit, vimb, lariza and others

@jun7 @Docbroke
Would anyone mind pointing me to where I can find this 'easylist.txt' file

Edit: https://easylist.to/

Last edited by nmeasure (2018-01-30 02:02:42)

Offline

#9 2018-01-30 01:55:12

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: adblock with easylist.txt for luakit, vimb, lariza and others

nmeasure wrote:

@jun7 @Docbroke
Would anyone mind pointing me to where I can find this 'easylist.txt' file

You can find it on https://easylist.to, use the links starting with "View ..."


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#10 2018-01-30 02:03:10

nmeasure
Member
Registered: 2015-08-25
Posts: 3

Re: adblock with easylist.txt for luakit, vimb, lariza and others

progandy wrote:
nmeasure wrote:

@jun7 @Docbroke
Would anyone mind pointing me to where I can find this 'easylist.txt' file

You can find it on https://easylist.to, use the links starting with "View ..."

Thanks. Beat me to it.

Offline

Board footer

Powered by FluxBB