简体   繁体   中英

altering displayed web page

I am attempting to write a firefox addon that will analyze the displayed page and change the text display to be hyper links (according to some algorithm).

I am trying to fogure out how can i parse the html document tree to retrieve the text in order to make it a link. So i need not only the text but its position in the document. Like if i had some kind of parser that will give me only text nodes or something, and then i can replace its content.

Is there such a thing at all?

You can insert javascript into every page so you have everything that javascript can do. A good place to start learning about Firefox addon development is the MDN https://developer.mozilla.org/en/Building_an_Extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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