How to Extract/Retrieve source code given URL in Firefox extention
问题 I'm writing a Firefox extension that will analyze / parse the linked pages while the user is still on the current page. I know there are ways to retrieve the source code for the page currently being viewed, but what about the linked pages? If I'm able to obtain the URL of the linking page, will I be able to retrieve the source code of that URL? My extension is mainly written in XUL and JavaScript, any code or sample add-ons will help me a LOT! 回答1: Maybe the following JavaScript snippet will