Script Summary: Add an ability to invoke a 'google site search' form on every page. It allows you to do a custom site search restricted by current site domain (and optionally a site path).
Use hotkey ctrl+shift+9 to invoke the search form. Hide it by pressing escape within the form. Press Enter in input field or click on 'Google' button or 'on' text to do search (hold Shift key if you wish to open search in a new tab).
A currently selected text will be inserted into search field if you invoke the form first time.
TIP: (for Firefox users) Did you know that you can do multiregion selection by holding Ctrl key and doubleclicking on words in text?
Known BUGS: If you cancel (hide) the search form in Firefox then current window will lose a keyboard focus and all keyboard bindings will not work at all (including firefox interface). Just click somewhere on a page with mouse to restore keyboard behaviour.
This is enhanced and improved version of "Google site search" script.
- It does not pollute every page with hidden form. Search form will be injected only when user will request it.
- Search form consistent across sites, even though they specially style form elements in a certain way.
- Nice path selector instead of combobox.
- Truncated length of the text displayed in the path selector for long urls.
- Support international (non english) chars in urls.
- Can start search in a new tab
Tested in Firefox and Opera