views:

50

answers:

2

Hi,

I'm looking to create an extension for the leading browsers (firefox, safari and ie). Its rather simple, and I'm looking for the most efficient way to go about this.

I need to get the hostname of the current site the user is on, and if it matches a certain parameter(eg, mysite.org), I'll need to append to the link some extra data and refresh to the new link. What is the simplest way to go about this? (I don't want to go in the direction of a bookmarklet - since this would require the user to click. I'd like this to happen automatically)

sort of something like this:

if(window.location.hostname == 'mysite.org')
{
     location.replace(document.location.href + '/&mystuff=xyz');
}

Thanks!

A: 

I've never used it but I remember seeing BrowserPlus when it was announced by Yahoo some time last year: perhaps it's worth a look?

jkp
i'd like this to work in a situation where i don't have access to mysite.org - i can't insert a <script> tag
rashcroft44
A: 

http://arantius.com/misc/greasemonkey/script-compiler

daniel
That appears to be Firefox-specific. Am I missing something that would allow you to create an IE or Safari extension as well?
MatrixFrog