如何从外部firefox访问Firefox的DOM(或HTML内容) [英] How to access Firefox's DOM (or HTML content) from outside firefox

查看:261
本文介绍了如何从外部firefox访问Firefox的DOM(或HTML内容)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题:



我的程序将搜索用户打开的FireFox窗口。



如何访问Firefox的Active Tab的DOM(或HTML内容) )从外部firefox使用我的C ++程序。



有可能吗?



如果不可能,如何在Firefox中将文本复制到剪贴板而不安装/设置任何内容? / p>

最好的问候,
Nuri Akman

解决方案

没有内置的方法来从外部程序访问Firefox内的网页的DOM。你可以编写一个扩展,实现某种IPC(使用套接字或其他),并与之通信,但不是内置于Firefox。


I have a question:

My program will search FireFox windows opened by user. When a user open Firefox and enter any site, I want to search for a keyword in that page's HTML content.

How can I access Firefox's Active Tab's DOM (or HTML content) from outside firefox using my C++ program.

Is it possible? If so, can you give me some idea or links?

If it is not possible, how can I copy text to clipboard within Firefox without installing / setting up anything?

Best regards, Nuri Akman

解决方案

There is no built-in way to access the DOM of a web page inside Firefox from an external program. You can write an extension that implements some sort of IPC (using sockets or whatever) and communicate with that, but not built-in to Firefox.

这篇关于如何从外部firefox访问Firefox的DOM(或HTML内容)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆