Geek magazine hacker daily blog

9 years, 3 months ago
I lacked the current operators always. It is enough different functions of search in Google, but some of them here are implemented absolutely neyuzabelno. For example, why to set language of required web pages, I have to climb every time in "Advanced Search" or edit GET request variables in the url of the page? About on the automatic machine driven in "#=100" I also do not speak. The strangest that the part of parameters from "Advanced Search" is implemented in the form of operators, the part — is not present.

I always wanted that there were additional search operators covering these, quite useful functions. And only last night I caught up: "It is possible to implement them by means of user.js!" Outlined a planchik, sat down at several o'clock (because a dzhavaskripter from me any) and proapdeytit already known to you "Tuned Google SERPs".

So, for this moment the following operators are available:

co: <dvukhbukvennyy_kod_strana> — sets the country from which you perform web surfing. Happens it is useful if you decided to look "and what positions my website has in issue for Argentina".

lang: <dvukhbukvennyy_kod_yazyka> — sets language of the pages displayed in results. For example, you look for materials in Russian about a modern gedzhet or the program. How many did earlier? Wrote the English-language name and some Russian word. For example: "iphone 3g overview". But first, it narrows a circle of searches, secondly, Google lately is guided by the fact that this word was in exile to article, article at the same time can be English-speaking and not to contain the word. Having set a script, we safely write "lang:ru iPhone 3gs" and we enjoy the complete range of materials in Russian. The second case which occurs is intersection of words in different languages. For example, on the Russian requests sometimes get out the Bulgarian pages. I, having for the first time seen them, with astonishment thought that it is pages of the next udaffovsky website. By means of the operator "lang:" it is possible to cast away these foreign pages.

loc: <dvukhbukvennyy_kod_strana> — sets the country in which the website is located.

num: <chislo_ot_1_do_100> — sets amount of the issued results. It would seem why not to set "100" in search setups! However, as a rule, classical there are quite enough ten. Only in some, special cases it is necessary to increase this quantity.

In implementation of operators there is one "but": if you, as well as I, use a search line of the browser or shortcuts of search directly in an address bar of the browser — operators will not work owing to the fact that it is only javascript which is built in directly the page, but not the browser. However similar, "cunning" operators are most often used for the specifying repeated requests after we saw that submitted normal inquiry absolutely not that we wanted. Well, and we drive in repeated requests already on pages of the searcher where the script will work.

We set, we test, we report about bugs, we make efficient offers on improvements …

P. S. Who passed — Tuned Google SERPs does some more interesting things, read about them in the previous posts of my blog.

This article is a translation of the original post at
If you have any questions regarding the material covered in the article above, please, contact the original author of the post.
If you have any complaints about this article or you want this article to be deleted, please, drop an email here:

We believe that the knowledge, which is available at the most popular Russian IT blog, should be accessed by everyone, even though it is poorly translated.
Shared knowledge makes the world better.
Best wishes.