diff options
Diffstat (limited to 'site/app/webroot/google/google_toolbar.html')
-rw-r--r-- | site/app/webroot/google/google_toolbar.html | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/site/app/webroot/google/google_toolbar.html b/site/app/webroot/google/google_toolbar.html index 9797bfc..1c3bd80 100644 --- a/site/app/webroot/google/google_toolbar.html +++ b/site/app/webroot/google/google_toolbar.html @@ -1,15 +1,16 @@ -<html> -<script type="text/javascript"> - function redirect() { - if( document.referrer.match(/^https?:\/\/[^\/]*\.google\.com(\/.*)?$/) || - document.referrer.match(/^$/) ){ - window.location.href='http://toolbar.google.com/firefox/extensions/toolbar/google-toolbar.xpi'+window.location.search; - } else { - window.location.href='https://addons.mozilla.org/'; - } - } -</script> - -<body onload="redirect()"> -</body> -</html> +<html> +<script type="text/javascript"> + function redirect() { + if( document.referrer.match(/^https?:\/\/[^\/]*\.google\.com(\/.*)?$/) || + document.referrer.match(/^$/) ){ + window.location.href='http://toolbar.google.com/firefox/extensions/toolbar/google-toolbar.xpi'; + } else { + window.location.href='http://addons.mozilla.org/'; + } + } +</script> + +<body onload="redirect()"> +</body> +</html> + |