📜 ⬆️ ⬇️

Bookmarklet for searching in yandex search query from google.

When searching for yandex, I always liked that there is a “Search on Google” link at the bottom.
When searching google I always didn’t like that there is no “Search in Yandex” link below.
I decided to fix it by writing a bookmarklet.


To add a bookmark to your browser, simply create a new bookmark.
Name it for example "yandexsearch", and in the "address" field, paste this line:

javascript:( function (){ var a=window,b= document ,c=encodeURIComponent,d=a.open( "http://yandex.ru/yandsearch?text=" +c(b.getElementsByName( 'q' )[0].value));})();

* This source code was highlighted with Source Code Highlighter .
javascript:( function (){ var a=window,b= document ,c=encodeURIComponent,d=a.open( "http://yandex.ru/yandsearch?text=" +c(b.getElementsByName( 'q' )[0].value));})();

* This source code was highlighted with Source Code Highlighter .
javascript:( function (){ var a=window,b= document ,c=encodeURIComponent,d=a.open( "http://yandex.ru/yandsearch?text=" +c(b.getElementsByName( 'q' )[0].value));})();

* This source code was highlighted with Source Code Highlighter .


')
Everything. Is done.

Now, if you were looking for something in google, and now you want to search for the same thing in yandex - just click on this bookmark.

Source: https://habr.com/ru/post/49274/


All Articles