title: global interceptor for third party scripts who redirect
body: <p>One of the scripts to an offsite third party widget broke during execution and redirected all traffic on my homepage to theirs. </p>
  
  <p>Since I can't kill them, I'm either going to have to kill the script, or figure out a way to kill any attempt a third party JavaScript might make to redirect the browser. The most promising events I've found are <code>.unload()</code> and <code>window.onbeforeunload</code>, and my idea is to hopefully inspect the GET request and then validate the URL as not matching any of the valid links on my page, that's no problem except that I don't know how to get the event's GET value considering it's not bound to any clicks or action on the page, but a bogus something or other in a third party's .js? </p>
  
  <p>Anybody have luck working out a solution to something like this?</p>