Detecting JavaScript redirections (window.location.href =...)

AllSeeingI <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <[email protected]>
Hi! I hope it is the right place to ask.

I know how to detect META-Refresh redirections (look at Refresh
Blocker extension) and server-side redirection (look at
LiveHTTPHeaders). There is 1 type of redirections left - Javascript
redirections:

window.location.href = new_href;

Can I reliably detect it? onLocationChange won't work - it simply
detects -all- location changes (pressing links, back button, etc.)
Maybe there is a way to hook into the location.href setter?

Thanks in advance.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.