Saturday, 15 September 2012

javascript - Load and parse URL via JS in the background -



javascript - Load and parse URL via JS in the background -

currently trying develop little firefox extension.

in detail: want display users site dota2lounge.com current prize of steam items on steam community market. thought via firefox extension reads item names html code on dota2lounge.com . via js search steam community market item names , parse current prize. should happen without farther action user , without opening tabs/windows.

in java load site variable , work it. how js (or jquery)? or maybe there improve way in addon-sdk firefox solve issue.

any thoughts , hints welcome.

this should pretty simple using add-on sdk. here list of modules should at:

the request module allow create requests other sites: https://developer.mozilla.org/en-us/add-ons/sdk/high-level_apis/request

while request module fine, may want instead info steam site utilize page-worker module load site , extract info using jquery. much nicer using regex. code gist:

https://gist.github.com/canuckistani/6c299c812bbe582d9efb

javascript html firefox-addon firefox-addon-sdk steam

No comments:

Post a Comment