diff options
Diffstat (limited to 'site/app/webroot/google/google_suggest.html')
-rw-r--r-- | site/app/webroot/google/google_suggest.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/site/app/webroot/google/google_suggest.html b/site/app/webroot/google/google_suggest.html new file mode 100644 index 0000000..3f8441a --- /dev/null +++ b/site/app/webroot/google/google_suggest.html @@ -0,0 +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/suggest/google-suggest.xpi'; + } else { + window.location.href='http://addons.mozilla.org/'; + } + } +</script> + +<body onload="redirect()"> +</body> +</html> + |