简体   繁体   中英

firefox addon: download external url into string

I need to download some external urls to a string in a firefox addon.

How can I access the content of external urls for parsing?

To find out the url of the current tab in a firefox addon you can do:

var localString = gBrowser.currentURI.spec;

Then you can parse localString the way you want.

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