On 2015-11-12 09:14, Tithen Firion wrote:
I want to run a script on a page which has 302 redirect.
1. can I prevent this redirect and run script on original URL (no luck
with @run-at document-start)
302 is a server side redirect, the browser never renders a page and
therefore GM is not involved and cannot intercept the redirection.
2. can I run script on redirected URL and get referrer URL?
(document.referrer is empty)
Referrer, if available, is the referring page that lead to the URL that
was redirected, i.e.
with page1.html: <a href="/redirect/page2.html">link</a>
whereby /redirect/page2.html sends a 302 response to /page2.html
page2.html will see a referrer page1.html, not /redirect/page2.html
--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.