Page 1 of 1
block ads in a webview
Posted: Thu Apr 21, 2016 4:20 pm
by Ekrem
Hi everyone,
I am trying to block ads in an android webview. The think that , i dont only show one website, so i am not able to block ads from a JavaScript injection.
Adblock is so useful , and I believe there should be a adblock library which will block ads in a webview.
Can anyone help me ?
Regards
Re: BLOCK ADS IN A WEBVIEW
Posted: Fri Apr 22, 2016 2:01 pm
by rach
Hey Ekrem!
Thanks for reaching out to us.
Could you send us a screenshot of the ads you are not able to block and the link of the website?
Also, what is your device and Android version?
Hope to be able to help.
Re: BLOCK ADS IN A WEBVIEW
Posted: Fri Apr 22, 2016 7:41 pm
by lewisje
I believe this is something for the Adblock Plus app, rather than the Adblock Browser, which does not filter ads in other apps.
Re: BLOCK ADS IN A WEBVIEW
Posted: Mon Apr 25, 2016 4:16 pm
by Ekrem
First of All ,Thank you for your answers.
I am building my own app, and in that app i wanna block ads. There was a misunderstanding, sorry for that , my bad...
Re: BLOCK ADS IN A WEBVIEW
Posted: Wed Apr 27, 2016 4:43 pm
by Ekrem
Hi all,
Any news ?
Re: BLOCK ADS IN A WEBVIEW
Posted: Thu Apr 28, 2016 3:00 pm
by rach
Hey Ekrem!
Could you send us the info from the previous message
Thanks!

Re: BLOCK ADS IN A WEBVIEW
Posted: Fri Apr 29, 2016 4:14 am
by Ekrem
Hi Rach,
Thank u for your post.
But i guess, i couldn't explain
In an android Webview, i am showing websites. Not only one specific, but any websites. Normally in a browser, or Adblock browser it will be blocked. But I need to block ads in my application by embed adblock library file in the project. So what I thought, there might be a adblock jar library file that i can use it in the application.
Regards
Re: block ads in a webview
Posted: Fri Apr 29, 2016 4:39 pm
by lewisje
I don't think there's a .jar file, but if you know how to make one from the Adblock Browser source code, dig in:
https://hg.adblockplus.org/adblockbrowser/file
It's probably not helpful, because the Adblock Browser for Android is based on Firefox, rather than using a typical WebView.
Re: block ads in a webview
Posted: Sun May 01, 2016 11:39 am
by Ekrem
I see lewisje,
I hope one day we will have a library by Adblock.
It will be so useful for programmers