You are not logged in.
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
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)
Arch is home!
https://github.com/Docbroke
Offline
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
┌─[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
Arch is home!
https://github.com/Docbroke
Offline
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
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
Arch is home!
https://github.com/Docbroke
Offline
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
@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
@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 ' |
Online
nmeasure wrote:@jun7 @Docbroke
Would anyone mind pointing me to where I can find this 'easylist.txt' fileYou can find it on https://easylist.to, use the links starting with "View ..."
Thanks. Beat me to it.
Offline