Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

replacing typed URL with external one

0 views
Skip to first unread message

wani...@gmx.ch

unread,
Sep 7, 2008, 6:30:16 PM9/7/08
to
Hi

I'm new to extension development and looking for some help... I saw
the URL fixer extension (https://addons.mozilla.org/en-US/firefox/
addon/2871) and I want to build a quite similar one. Instead of
replacing strings (found in the url-fixer.js) for typos I need to
replace the whole URL. Let's say someone types "http://
www.mozilla.org"... then it should be replaced by "http://
www.newurl.com/?id=xy" (loaded from XML or RSS) like URL fixer
replaces ".cmo" with ".com".

Can someone give me a hint how to do this? Especially how to load the
external XML file (which changes from time to time) with the
replacement data... (XMLHttpRequest?)?

Any help is very much appreciated!

Daniel

PS: The extension is not for fooling people... I can explain the
purpose if someone's interested.

0 new messages