I want to make my firefox follow a location in a response header of 301 redirection with greasemonkey. Greasemonkey can get the response header? If yes, how?
Note that I've prevented redirection by setting "accessibility.blockautorefresh" to ture in firefox about:config.
I did: I've searched by phrases "greasemonkey get response header" but I couldn't find how to get it. I got only results about GM.xmlHttpRequest. I want to avoid using it.
What I want:
I want to follow 301 redirection on https://t.co/
. I want to allow the redirection only for https://t.co/
. I could modify a "href" attribute having a value "https://t.co/*"
of "a" tags on https://twitter.com/
. But I want to get response headers and use them on https://t.co/
.