Questions tagged [gm-xmlhttprequest]

GM_xmlhttpRequest is a method available to GreaseMonkey scripts. It can be used to fetch cross-site HTTP requests.

GM_xmlhttpRequest is a method available to Greasemonkey scripts. The function does not suffer from the same-origin policy.

58 questions
0
votes
0 answers

How to pull a string of data from another page on the same domain via XmlHttpRequest and Greasemonkey?

My question comes in two main parts. I am grateful for every helpful answer. I am quite a newbie when it comes to programming. Hence, I am missing the 'big picture'. To make research on Amazon easier, it would be helpful to pull information from the…
0
votes
1 answer

GM_xmlhttprequest Problems & Tutorial somewhere?

I'm learning JS & keep running into the problem of how to put documentation together to do this or that. e.g. Greasemonkey is documented, but you have to know a lot of other context not even referred to to use the greasepot wiki very well. I've…
J. Bra
  • 1
  • 4
0
votes
1 answer

Cross Domain XMLHttpRequest using CORS or Web Proxy

My client has a very specific technical issue they have asked us to find a resource for. It is very specific, so I was wondering if anyone could steer us in the right direction (so I can steer them). They are trying to do a XMLHttpRequest to a…
0
votes
1 answer

GM_xmlhttpRequest POST request not working cross-domain

I'm running a script in Tampermonkey, and I'm trying to use the GM_xmlhttpRequest method to send a POST request cross-domain. However It's not working for me. In the console I just get normal cross-origin the error: XMLHttpRequest cannot load…
0
votes
1 answer

GM_xmlhttpRequest - triggers on Parent and Iframe windows - should only trigger on Parent window

I am building a GreaseMonkey test script that makes a GM_xmlhttpRequest each time a specific site is visited. GM_xmlhttpRequest should only trigger on the first "document" found (the parent window) and it should ignore iframes and other child…
0
votes
1 answer

Is a partial request possible with GM_xmlhttpRequest?

I've kinda figured out the basics of how to use GM_xmlhttpRequest and now I have a question. Is it possible to request just a portion of a webpage? Say I only want a table row from a known table where the img source contains "Rawk" and then make a…
Kat Cox
  • 3,469
  • 2
  • 17
  • 29
0
votes
1 answer

GM_xmlHttpRequest POST doesn't work in event listener

What I want is really simple: intercept the xmlHttpRequests sent by a page and send them to my local server to log it in a text file. But obviously, Ajax calls don't work in event listeners... I found several solutions and tried, and tried, and…
0
votes
2 answers

Does GM_xmlhttpRequest access the website as if I am accessing the website in my browser?

I am curious as to how GM_xmlhttpRequest() reads a page in certain situations. Does GM_xmlhttpRequest access the website as if I am accessing the website in my browser? Do sessions remain valid? For example: If I log into a website from one browser…
Jesse
  • 2,790
  • 1
  • 20
  • 36
0
votes
1 answer

GM_xmlhttpRequest's responsetext is missing some HTML

If I go to this Google Maps page, some of the HTML is missing in View Source, but shows up in Firebug. Likewise, when that same URL is passed to my function, the following HTML does not show up in the responseText, but it does show in Firebug when…
0
votes
2 answers

get 2 different url using xmlhttp.open

Need help on this following code. the problem is it only trigger the last xmlhttp.open not both. code as below.