Adding a bookmark to Firefox with this script as url makes it possible to search any site with the simple click of a bookmark (or typing assigned hotkey in the url box):
"javascript:q=""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);if(!q)q=prompt("Search%20terms%20[leave%20selection%20and%20box%20blank%20to%20list%20all%20pages]%20...").replace(/\s+/g,"%252B");if(q!=null)location="http://www.google.com/search?q="+q.replace(/\s+/g,"+")+"+site:"+location.hostname;void(0);"
Is it possible to fix it so that it works with IE9 too?