Tuesday, 15 November 2016

Creating Custom Search Engines in Chrome

Creating Custom Search Engines in Chrome:
Here is a trick, which you can learn in few minutes and hope it will be Greatly Useful & Time Savior (it helps me a lot). You might know this but if you don't, you should explore it.
Before using custom search you need to "create custom search".
1. Adding a Custom Search Engine:
The easiest way to open the search preferences window is to right-click (Mac: ctrl+click) in the address bar and select ‘Edit Search Engines…‘ – alternatively, you can also go toPreferences -> Default Search: Manage.


This opens up the Search Engines setting page as below:


Go to the Other Search Engines (bottom section). You’ll notice (to your big surprise?) that a lot of different search engines have already been added. This is because Chrome automatically adds search engines to the list after you search from a site. Most of the ones you’re looking to add are probably already there, but you need to change the keyword.
Otherwise, it’s pretty easy to add a search engine manually. You just need to supply the name, keyword and URL. Not simply the site URL, mind. You’ll need to show Chrome where to insert the search string.
To find the correct URL, simply launch a search on the site, and take a look at the address bar. You’ll need to replace your own search query with %s to create the search URL for Chrome. Perhaps even easier, you should be able to search for ‘%s’ on the site, and just copy the entire URL.
Just for illustration i will show you one custom search (which i use a lot), created for saving the YouTube Video to any required Format using.

Scroll down till the end, Type in "some name" for your search engine in first field (for example: Video Downloader, this will be appeared as header while searching). 


Type the Keyword (Only important thing you need to remember while searching later), lets say "video". Get the exact search format for that particular site, Type that in third field and replace the search query with "%s"
Once You are done, it will be added to your Custom Search List as below:


2. Using Custom Search Engine
Now Forgot everything what you have done so far for setting the search engine. Only thing you need to remember is associated keyword ("Remember Second Field".! video).
To use that custom search, type keyword in chrome address bar and hit "Space" key, and then type in your search query and hit enter. This will immediately redirect you to desired site and shows the search query.
Screenshot attached, using just created "video" keyword, and copied random YouTube video link as search query.


Voila.!!! You save it's video/audio whichever format you want to.


Want some search to be used extensively, make that engine DEFAULT, and then you don't even need the keyword. Just paste your query in the address bar (sounds familiar right? searching something on google, you just type search query right.! Because google is your default search engine).
3. For Some Complex Searches
For some complex search (where you don't have direct pattern to Search_URL), you can write some html script. Just pass the script path with proper arguments as:


EmoticonEmoticon