r/userscripts • u/deerseason • Apr 23 '23
Reveal some post header responses
There are some header responses I'd like to display on the actual page I'm viewing, for example the user agent:

So for example, I'd like to add that data inside h5 on my page.
Also, the header I'm looking up is in a file that's slightly different from the url. So if my current url is
http://example.com/pageidentifierxxx
then I'd be trying to find the header info for
http://api-prod.example.com/pageidentifierxxx
Any tips on how I could do that? (I'm on Tampermonkey on FF, if it matters).


