Skip to content

Instantly share code, notes, and snippets.

@magomi
Created November 10, 2011 10:20
Show Gist options
  • Save magomi/1354558 to your computer and use it in GitHub Desktop.
Save magomi/1354558 to your computer and use it in GitHub Desktop.
GM_xmlhttprequest sample
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);
}
}
});
@dnmTX
Copy link

dnmTX commented Jun 18, 2021

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment