0

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/.

Nkosi
  • 191,971
  • 29
  • 311
  • 378
uipyshoyy
  • 1
  • 2
  • If you somehow got 301 redirects blocked in the current Firefox release, count yourself lucky. (And I'd be interested to learn how you really did it; that config setting is insufficient). What page do you see when you follow this link: `t.co/VY1vdMiR` ? – Brock Adams Apr 26 '19 at 01:48
  • 1
    @Brock Adams, I noticed that I need the setting and NoScript addon to prevent the 301. I see here when I follow the link. :) Thanks for dup mark. – uipyshoyy Apr 26 '19 at 05:59

0 Answers0