Created
November 10, 2011 10:20
-
-
Save magomi/1354558 to your computer and use it in GitHub Desktop.
GM_xmlhttprequest sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GM_xmlhttpRequest({ | |
method: 'GET', | |
url: 'http://localhost:8080/dst/webservices/ticket/getTickets?wicketpath=' wicketComponents[i].getAttribute('wicketpath'), | |
onload: function(response) { | |
var tickets = JSON.parse(response.responseText); | |
for (var j = 0; j < tickets.ticket.length; j++) { | |
GM_log(tickets.ticket[j].url); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@magomi i'm not very familliar with all that so let me ask.
Do you think something similar can be made to respond to certain website with diffrent user-agent?