Reputation: 73
Is it possible to access Chrome/Firefox extensions/plugins like ghostery from a Java program?
The aim is an experimental one to use the ghostery plugin with a client-server application to scan web pages without the use of a web browser.
Upvotes: 2
Views: 249
Reputation: 1219
I don't think you can do what you want... or if you can it would be too much work!
If you are wanting to scrap webs, you can easily do it whit a headless browser.
There are a lot of headless browsers. I had use PhantomJs (http://phantomjs.org/)
, obviously in Javascript and super easy to use...
But there others in Java too:
http://jaunt-api.com/
http://htmlunit.sourceforge.net/
(Haven't tried them)
Upvotes: 0
Reputation: 2635
From java applets you should be able to call javascript (old school) not sure if that will help you to achieve what you want, but you can access the javascript calls.
Upvotes: 1
Reputation: 160321
No, I don't think so.
You might be able to play some games with its JavaScript using a JavaScript-capable Java-based headless browser, though, if you're specifically looking to replicate ghostery functionality.
Upvotes: 3