Add default text in your search
Saturday, February 2, 2008 2:15:42 PM
Google supports several cool features. One is searching a specific site or even a topdomain. By typing "sennheiser px 100 site:no" you can search for Sennheiser PX 100 only for norwegian sites. (And by the way, Sennheiser PX 100 and MPX 100 are awesome!) But what if you want a specific "search only norwegian domains" added to Opera? I'll show you how
. Go to Google and create a search.
Expand details in the dialog and look at the search query. Servers will separate all the values by the "and" sign (&). For Google, the interesting part is the 'q' value. I've highlighted the interesting part in the image.When you select an input and choose "Create Search", Opera does some light processing and finds which part you want to be variable. For the variable, Opera puts "%s" and will insert what you want to search for where the "%s" is. Everything else is left alone, which means that you can insert more text if you want! So instead of it saying "q=%s", you can change it to say "q=%s site:no". Give the new search a keyword, such as "gn" (for google norway) and click "Ok". Now you're done, and the newly created search will always add " site:no" to any search query you're making!












