Hi! Is there a "hook" in the browser where an extension can register itself to get called whenever a URL is about to be accessed? I ask because I'm interested in knowing if there is a similar way for an extension to get to see, and optionally rewrite, every URL that is about to be accessed.
Bromskloss
Hi, you should ask
Hi, you should ask development questions like this on the dev-extensions mozilla mailing list.
I was hoping to get the
I was hoping to get the place in the source code pointed out so I can figure it out for myself from there on.
really interesting
The question indeed is very interesting.
Sometimes even if you have proxy IP address and port number configured in the browser some application i.e. flash player might not obey proxy configuration settings and request the page or some other content directly.
For example ITV CatchUp player works exactly like this preventing people from outside the UK to watch the content even if they use UK proxy.
If there would be a plugin capable to perform such URL rewriting I would definitely use it and recommend to others.
Get FoxyProxy compatible proxies in any country! Send email to 'foxyproxy[at]gmx[dot]us' for details.
Since flash player can go
Since flash player can go outside the browser to make connections, redirection must occur outside the scope of the browser. You could try editing your HOSTS file, for instance.
You can rewrite URLs with
You can rewrite URLs with web progress listeners IIRC. However, Flash plugins can completely bypass the browser and make socket connections on their own, so there's no way to affect Flash players written that way without writing an OS-level component.
Thanks. Will this make the
Thanks. Will this make the browser wait for my return before it goes on an actually accesses anything over the net? That is the behaviour I am looking for.
Hi, you should ask
Hi, you should ask development questions like this on the dev-extensions mozilla mailing list or mozillazine.org forums.