Hacker News new | ask | show | jobs
by jluxenberg 5644 days ago
I looked at doing this using Javascript in a browser extension a while ago, and it's actually not possible to do for a couple of reasons:

  1) XHR cross domain policy prohibits requests to domains other than the domain the page loaded from
  2) the XHR GET method always follows a 301 redirect and returns the content at the URL.  The full URL is not made available.
1 comments

You'd have to write something on your server that does this, and expose it to your client JS via a local URL.