简体   繁体   English

编写Google Chrome / Mozilla扩展程序所需的帮助

[英]Help needed on writing extension for Google Chrome/Mozilla

I would like to create a extension for Google Chrome/Mozilla for the following requirement. 我想为满足以下要求的Google Chrome / Mozilla创建扩展程序。
If I search for any text in a web page, If text is found then automatically background colour has to be added to that text.Basically it will be done by browser. 如果我在网页中搜索任何文本,如果找到了文本,则必须自动将背景色添加到该文本中。基本上,这将由浏览器完成。 But multiple searches are possible. 但是可以进行多次搜索。 So I need to make all the searched and found texts highlighted. 因此,我需要突出显示所有搜索到的文本。 I know very basics of writing extensions for Google chrome( I have learnt through http://code.google.com/chrome/extensions/getstarted.html ) . 我知道编写Google chrome扩展程序的基础知识(我已经通过http://code.google.com/chrome/extensions/getstarted.html学习了)。 I have good knowledge on JavaScript. 我对JavaScript有很好的了解。 I don't have any basic idea to achieve the solution for my requirement. 我没有任何基本想法可以满足我的要求。 Please someone guide me on how to proceed further. 请有人指导我如何继续进行。

Although I don't have an answer for Google Chrome, making a Firefox addon is simple. 尽管我没有针对Google Chrome的答案,但制作Firefox插件很简单。

Take a look at the addon SDK and addon builder and the documentation for it . 看看addon SDK和addon构建器以及其文档 The first tutorial outlines the setups you will need to take and it should help get you started. 第一篇教程概述了您将需要进行的设置,它将帮助您入门。 Also, ou will probably need the page-mod library . 另外,您可能需要page-mod库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM