Introduction: How to Add Custom Search Engines in Opera

Picture of How to Add Custom Search Engines in Opera

So do you use Opera? (Probably yes because you are viewing this instructable)
You know the "g *search term*" to search *search term* on Google, and same for Wikipedia etc.?

I use them all the time, and I have added a couple of my own, and decided to share a little tutorial on how to get started on making them yourself.

I will be using a different language Wikipedia (finnish as I am finnish) search as an example, as it is simple and gives you the idea of what we're doing here.

Step 1: Explore the Site You're Adding

Picture of Explore the Site You're Adding

So before you can add a custom search engine, you need to know how the search engine works. Duh.
In this case we're going to the finnish Wikipedia's main page. Then you need to think how you are going to use the search engine once we've set it up. Wikipedia is pretty simple, and there is really just one way to use it, and that is to read articles.

So go to any article on Wikipedia and copy the whole address on notepad or something.

Step 2: Examine the Address

Our address is http://fi.wikipedia.org/wiki/Opera.
What we need to do is recognise that what part of the address is "static", which means that whatever you search for it will be the same. In this case http://fi.wikipedia.org/wiki/
And the part that says what you searched for is "Opera" (in the wikipedia article of Opera, of course)

Step 3: Finally, Add the Search Engine

Picture of Finally, Add the Search Engine

So, now that we're done with the "boring-part" we can add the search engine to Opera. That means, open settings (It should open with Ctrl+F12) and go to the Search-tab. Click Add.
Now, you should choose a name for it that describes the search engine. For finnish Wikipedia, we shall use the name Wikipedia Finland. Clever, huh?
Choose a keyword. This is the 'g' in Google search, and 'w' in Wikipedia search. As it is Wikipedia Finland, I'll choose 'wf'.

Now here's the part where we make it work. The Address-field. Copy the static part of the address in it, in this case 'fi.wikipedia.org/wiki/'. Then where the search term is, put '%s'. As Opera is coded in C++, %s means a string variable, and here %s means the thing you searched for.

So simply if you search Finnish Wiki for Instructables article, which doesn't exist :(, you write 'wf instructables' in the address bar, and the %s means the keyword instructables. Get it?

Step 4: Other Examples

So, now that your first custom search engine is up and working, let's check a few other examples.

A hard one is Google's image search. It's hard because when you search for something, the address looks like this: https://www.google.com/images?q=something&biw=1920&bih=948&sei=dH8eUJ7FBamk4ATEs4C4DA
and that's pretty long. I have no idea what 'bih' or 'sei' means, and as they might mean something we don't want, we shouldn't just blindly add that.
Rather, you should search for the default static address for image search, without those extra parameters. This can be a bit tricky, and there's not really one way to find it, but for this case, it's 'www.google.com/images?q='
Just as you did before, in the Search engine adding-window add that static part and '%s' on the address, and like magic, you now have a working custom Google Image search! The thing you need to remember that in almost all cases, the parameter 'q=' means the thing you're searching for, so that's what you are looking for.

Instructables' seach bar simply uses Google's custom search, which is a simple code you can add to your website to let people search for stuff specifically on your site, so it's kind of a bad example, but I'm sure you have gotten the idea by now. Basically, it's the same as going to Google and searcing 'something site:www.instructables.com'.

I hope you enjoyed this, as I said earlier I am finnish so my english isn't perfect, and this is my first Instructable.
Please comment if you want me to improve something in this tutorial, or if you find it useful, just say thanks! :)

Comments

simplynoidea (author)2017-05-03

Ok, I am new to Opera. Loved to use Firefox, but it slows down my computer by swallowing all resources so I finally decided to say goodbye. Anyway it has some nice features.

That being said please be patient with my ignorance. Thank you.

"So simply if you search Finnish Wiki for Instructables article, which doesn't exist :(, you write 'wf instructables' in the address bar, and the %s means the keyword instructables. Get it?" - To be honest: no. Descriptions like this usually make me run away as fast as I can.

Do you know the nice little firefox feature, the search field, where you can add any search engine you come across without needing '%s' and C++, which are terrifying me.

"That means, open settings (It should open with Ctrl+F12) and go to the Search-tab. Click Add." Ctrl+F12 regulates the volume, but ok I found the settings via the normal menu. Now there is only one little step to make: finding the "Search-tab". Here we go, checked all menu items, even wrote "search-tab" in the internal Opera search field, it must be so obvious that nobody cares about telling me where to find it or I am simply too stupid, something that computerpeople often make me feel when they are talking in their own language... adding things like "I hope you enjoyed this". It gives me the creeps instead, sorry to say, it is my fault, not yours.

canucksgirl (author)2012-08-05

Very interesting and good job for your first Instructable. Do you think you could show a screenshot of how this works after step 3? I think most people will understand, but seeing it in action always helps. :-)

loikkonen (author)canucksgirl2012-08-05

Do you mean using the search engine or adding the Google Images-search engine?

canucksgirl (author)loikkonen2012-08-05

Either one. I just thought that showing a screenshot of how your Instructable works might be helpful to people who don't understand what it really does. (Up to you.) :-)

About This Instructable

12,552views

1favorite

License:

More by loikkonen:Make the perfect instant noodles!How to quickly grow a strong and healthy hairHow to add custom search engines in Opera
Add instructable to: