Sign up | Lost password? | Help

[ advanced search ]

Search Engines Sharing Thread

Forums » Opera Community » General Opera topics » Customizing Opera

Tuesday, 6. February 2007, 18:02:44

jabu2oz

avatar

Posts: 153

Search Engines Sharing Thread

A follow up from the Bookmarklet Thread, its a good idea for us to share our search plugins.

Please use this to share the more "obscure" ones, rather than the straight-forward (but neat) "right click to add search".

P.S. we all know about the ones here, but they are generally for use with Opsed, so this should be more useful for Opera 9 peeps.

I'll start a few (that I missed from Firefox):

Google Define
http://www.google.com/search?q=define:%s


The Infamous "Google MP3 Hack"
http://www.google.com/search?&q=intitle%3Aindex.of+%22mp3%22+%2B%22%s%22+-htm+-html+-php+-asp+%22Last%20Modified%22

Thursday, 8. February 2007, 14:44:09

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1649

Nuova Atlantide -Italy-

this is a my field search, drag link in your toolbar :D

Search Widgets

Thursday, 8. February 2007, 21:16:20

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2004

USA

The link is for a search field. Copy and paste the code below each field to access the same search from the address bar with a keyword shorcut. I have indicated what I set them as before each search.

w Wikipedia
http://www.wikipedia.org/wiki/Special:Search?search=%s

yt YouTube
http://www.youtube.com/results?search_query=%s

ya Yahoo Answers
http://answers.yahoo.com/search/search_result?p=%s&scope=subject&mc=&fltr=_en&tab=3&asktime=&st=1

imdb Internet Movie Database
http://www.imdb.com/find?s=all&q=%s

cs Google Codesearch
http://www.google.com/codesearch?q=%s

js Google Codesearch for Javascript only
http://www.google.com/codesearch?q=file:\.js$+%s

Thursday, 8. February 2007, 23:45:06

Trailing

avatar

Posts: 718

What is google define? Is it just a replacement dictionary and what does the infamous google mp3 hack do?

Friday, 9. February 2007, 01:41:16

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2004

USA

Originally posted by Trailing:

What is google define? Is it just a replacement dictionary and what does the infamous google mp3 hack do?

Its easy enough to try them out. google define is similar to a dictionary and the mp3 "hack" is a way to use google to find mp3s.

Friday, 9. February 2007, 02:44:00

BAMAToNE

Internet Sensation

avatar

Posts: 1857

Tuscaloosa, AL

Newegg.com Search
URL=http://www.newegg.com/Product/ProductList.asp?DEPA=0&type=&Description=%s&Submit=ENE&Ntk=all&N=0&minPrice=&maxPrice=&Go.x=0&Go.y=0


Merriam-Webster Online Dictionary
URL=http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=%s&submit


Deep Discount DVD Search
URL=http://search.deepdiscountdvd.com/search?p=Q&ts=custom&w=%s&search.x=0&search.y=0

Friday, 9. February 2007, 08:21:18

xErath

javascript guru

avatar

Posts: 6403

Norway

Opera Software
MSDN
http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=%s


Java API
http://www.google.com/search?q=%s+site:http://java.sun.com/javase/6/docs/api/&sourceid=opera&num=%i&ie=utf-8&oe=utf-8

Friday, 9. February 2007, 12:16:03

Nexus009

Vagabondo Dell'Infinito

avatar

Posts: 1649

Nuova Atlantide -Italy-

this is not a field search! This is a anonimizer bar!!!
anonymouse.org

example: insert www.opera.com in the field, and the page is automatic anomiymouse proxy activated!!!

(excuse for my bad englesh..... )

Saturday, 10. February 2007, 06:05:11

Schneemann

Rübennase

avatar

Posts: 1135

Hm, these perhaps?
Custom Searches with Javascript Magic

And a search to launch a last.fm tag radio (no guarantees)
javascript:(
    function() {
        var s = escape("%s");
        radioPopup=window.open(
            "http://www.lastfm.de/webclient/popup/?radioURL=lastfm://globaltags/" + s,
            "flashRadioPopup",
            "toolbar=no, location=no, directories=no, status=no,menubar=no, scrollbars=no, resizable=no, width=375, height= 145"
        );
        radioPopup.moveTo(200,200);
        radioPopup.focus();
    }
)()

Saturday, 3. March 2007, 01:47:15 (edited)

Originally posted by jabu2oz:

earch Engines Sharing Thread
A follow up from the Bookmarklet Thread, its a good idea for us to share our search plugins.

Please use this to share the more "obscure" ones, rather than the straight-forward (but neat) "right click to add search".

P.S. we all know about the ones here, but they are generally for use with Opsed, so this should be more useful for Opera 9 peeps.

I'll start a few (that I missed from Firefox):



I'm a 5 year user of Opera since 5.x and didn't know about this thread or the opsed plugin manager, http://operawiki.info/SearchPlugins , ... as with everything we all have things we spend time on and Opera is something that I stopped spending time on after I had it mastered to the point it worked perfectly for me. And then now I need it to work more perfectly! : ) haha.

I'd like you opinion on the aspect of swapping search.ini files in and out. My ignorance is showing about how to manage more than the 10 search engines that show up in the
pull down menu. I've never seen more than 10. Since my search.ini has 30 or more entries
I suppose Opera can use them with a letter before the search term in the url box.

But I wonder if , being an old DOS guy, if it wouldn't be super easy to just swap out
to a different seaerch.ini file for say, medical searching, or other kinds where I'd
want to see my 10 pull downs .

Could some of you comment on my 'comments' ? What's that called when you comment on a comment anyway? he.
In good fun and always willing to learn,

Andre

PS: I was playing and found inline forms pretty neat. I wonder if Opera could be
made to easily put the search into more than one site and respond with the results
with say 4 pages within a page. it would make Opera ask 4 replies piped through inline frames

If you want a simple html to play with I'll put it up
here ..

Sunday, 4. March 2007, 01:00:12

chesss

lowly pesant :(

avatar

Posts: 1696

India

Originally posted by andre1000:

But I wonder if , being an old DOS guy, if it wouldn't be super easy to just swap outto a different seaerch.ini file for say, medical searching, or other kinds where I'd want to see my 10 pull downs .


If I understand you correctly, an old Dos guy shouldn't have problems with this.
Simple batch file

close opera
cp $operaprofile\search.ini $operaprofile\search.ini.bak
cp c:\medicalsearch.ini $operaprofile\search.ini
start opera
and so on.. just and a lil if/else condition there to make it swap .



Tuesday, 6. March 2007, 18:06:46

jabu2oz

avatar

Posts: 153

So I'm right in saying you'd like some sort of search.ini sharing resource? As chesss says, batch's would a simple way of doing things...

Thursday, 29. March 2007, 06:34:26

Strathos

avatar

Posts: 114

Site search with google

javascript:void(location.href='http://www.google.com/search?q=%s+site:'+window.location.hostname+'&sourceid=opera')

Thursday, 29. March 2007, 18:38:48

Schneemann

Rübennase

avatar

Posts: 1135

My versions ...

Site search on active page - "s"
javascript:(
    function() {
        open(
            "http://www.google.com/search?client=opera&rls=en&q=%s    site:"
            + window.location.hostname
            + "&sourceid=opera&ie=utf-8&oe=utf-8"
        );
    }
)()

Domain search on active page - "d"
javascript:(
    function() {
        open(
            "http://www.google.com/search?client=opera&rls=en&q=%s    site:"
            +window.location.hostname.match(/%5b^%5c.%5d+%5c.%5cw{2,4}$/)
            +"&sourceid=opera&ie=utf-8&oe=utf-8"
        );
    }
)()

Folder search on active page - "f"
javascript:(
    function() {
        var splitarray=document.location.href.split('/');
        splitarray.pop();
        open(
            "http://www.google.com/search?client=opera&rls=en&q=%s    site:"
            + splitarray.join('/')
            + "&sourceid=opera&ie=utf-8&oe=utf-8"
        );
    }
)()

Thursday, 29. March 2007, 18:40:15

Schneemann

Rübennase

avatar

Posts: 1135

Translate active page with Babelfish - "t en fr" or "t de en"

The following search will translate the active page between the languages of your choice, using the babelfish translation tool. With this search installed, you can visit the website of your choice, type "t en fr" to get the french version (if t is the search nickname).
Just add a custom search with the following code:
javascript:(
    function() {
        open(
            "http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp="
            +'%s'.split('+').join('_')
            +"&url="
            +document.location.href
        );
    }
)()

Thursday, 29. March 2007, 18:50:40 (edited)

Schneemann

Rübennase

avatar

Posts: 1135

Simultaneous Searches - Combining Search Engines


In multiple new tabs (attention, popup blocker!)

The following code will open one new tab for google, one for yahoo and one for altavista search, all with the same search arguments. However, one of them might be blocked by the popup blocker!!
javascript:(
    function() {
        var s=escape("%s");
        document.location.href="http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search?p="+s+"&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8";
        open("http://www.google.com/search?q="+s+"&sourceid=opera&num=%i&ie=utf-8&oe=utf-8");
        open("http://www.altavista.com/web/results?itag=ody&q="+s+"&kgs=1&kls=0");
    }
)()


The same using frames
javascript:(
    function() {
        var s = escape("%s");
        var t = "Multisearch - "+s;
        var yahoo  = "http://www.yahoo.com/r/sx/*-http://search.yahoo.com/search?p="+s+"&fr=yfp-t-501&toggle=1&cop=mss&ei=UTF-8";
        var google = "http://www.google.com/search?q="+s+"&sourceid=opera&num=%i&ie=utf-8&oe=utf-8";
        var googlemaps = "http://maps.google.de/maps?f=q&hl=de&q="+s+"&btnG=Adressen+suchen";
        var googleimages = "http://images.google.com/images?hl=de&q="+s+"&btnG=Bilder-Suche";
        document.write(
            "<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.01 Frameset//EN' 'http://www.w3.org/TR/html4/frameset.dtd'><html><head><title>"
            + t
            + "</title></head><frameset rows='50%,50%' cols='50%, 50%'><frame src='"
            + google
            + "'><frame src='"
            + yahoo
            + "'><frame src='"
            + googlemaps
            + "'><frame src='"
            + googleimages
            + "'></frameset></html>"
        );
    }
)()



Not sure yet how to open that in one single page!

Saturday, 14. April 2007, 14:16:18

These are excellant! It feels like finding a box of gold. Thanks

For those who put the auto add link it would be very nice if you'd include
the url too so we can try it before adding it.

also - could someone remind me how to delete the window I add if I happen to add
a search that I don't want?

Saturday, 14. April 2007, 14:34:18 (edited)

Schneemann

Rübennase

avatar

Posts: 1135

Yahoo mail: Create a new trash address.

A cool thing about yahoo mail is that you can create an arbitrary number of 'trash' addresses, if you are afraid of spam.

I created a search engine for that. I can't share the string (I guess it's personalized), but it's quite easy: Just log in to yahoomail, and create a new trash address. There's a text field where you are asked to type a name suffix for the new address. There you right-click and create a search (I use "ytrash" as a nickname).

The only problem is, you need to log in to yahoomail before the engine works. Once logged in, you can type "ytrash blabla", which creates a new trash address with "-blabla" as a name suffix.

Saturday, 14. April 2007, 14:27:56

Originally posted by jabu2oz:

So I'm right in saying you'd like some sort of search.ini sharing resource? As chesss says, batch's would a simple way of doing things...



Yes I'd like that.

I just was made aware of the ability to right click on a search window to
automatically add the search to Opera's window. I use 8.53 and don't plan to
upgrade past it. I assume this feature is in 9 or later.

One idea that I think would be cool is if a web site operator could be encouraged
to put the Opera search string for his site prominently. This would be really
useful to the operator and the users.

I know this kind of behavior by a site operator would definantly encourage me to
use that site and the search engine. As it is now sometimes I pick the sites
to search that are in my search window.. not the sites that might be best to find
what I want...

So I have a list of sites I mean to add to the search window and it's been a year
nearly and I'm still waiting to add some of them.

I really appreciate the links here. They're useful.

And sadly some younger people don't realize that we all have different priorities
and different ways to use our time and tools. With that in mind we don't all
do things the same way.

With computers there's always an alternate way to do the same thing. And what works
for one person just doesn't feel good for another. Look at Beta versus VHS. hehe.

I'd like to see sites offer their search code up front where I can click to add
it or edit my search.ini to add it.

And about the dos swap. Yep DOS works great to change one set of files
for another. I usually just create a directory of multiple files and point
my program at the right one. But if that doesn't work then moving and deleting
works OK too. Just be sure you have a backup. I always delete the wrong thing
and if you're in a DOS window you don't get a chance to undelete easily.

Saturday, 14. April 2007, 14:32:35

Schneemann

Rübennase

avatar

Posts: 1135

Originally posted by andre1000:

For those who put the auto add link it would be very nice if you'd includethe url too so we can try it before adding it.

Usually you can guess the engine's url from the search string (should appear in your status bar, or a tooltip). And most often, the search will send you to that page anyway.
For the modified google searches, I can't give you an address - these do only exist in your search.ini file :smile: In google, you would have to type the additional parameters yourself.

Originally posted by andre1000:

also - could someone remind me how to delete the window I add if I happen to adda search that I don't want?

Tools -> Preferences -> Search.

Saturday, 14. April 2007, 14:35:32

Schneemann

Rübennase

avatar

Posts: 1135

Originally posted by andre1000:

So I have a list of sites I mean to add to the search window and it's been a yearnearly and I'm still waiting to add some of them.


What do you mean by "search window" ???

Friday, 20. April 2007, 05:30:46

seemille

avatar

Posts: 194

Korea

"my.opera.com" site search by Yahoo

http://search.yahoo.com/search;_ylt=A0geu9IgSAdGiJsApRql87UF?ei=UTF-8&fr=sfp&p=%s+site%3Amy.opera.com&fspl=1

Thursday, 28. June 2007, 00:27:32 (edited)

AyushJ

avatar

Posts: 4754

Opera Config Search :D

Opera:Config


The code (you can use this in Tools>Prefs>Search):
javascript:(function(){var url='opera:config#'+'%s'.replace(/\+/g,' ');if(location.protocol=='javascript:')location.href=url;else open(url,'_pref')})()


Thursday, 28. June 2007, 00:52:05

Tamil

Opera :-(|)

avatar

Posts: 110320

Heaven

Originally posted by AyushJ:

Opera Config Search

Thanks.

Saturday, 14. July 2007, 19:13:20

Schneemann

Rübennase

avatar

Posts: 1135

Just a little piece of fun :smile:

Select this code, right-click and "Go to URL" !!!
javascript:
function create_searchfield(search_engine_code) {
    var searchfield_node = document.createElement("input");
    var form_node = document.createElement("form");
    form_node.appendChild(searchfield_node);
    form_node.setAttribute(
        "search_engine_code",
        search_engine_code
    );
    form_node.setAttribute(
        "onSubmit",
        "javascript:
            var command = this.getAttribute('search_engine_code').split('%s').join(this.getElementsByTagName('input')[0].value);
            document.location.href = command;
            return false;
        "
    );
    return form_node;
};
var pre_nodes = document.getElementsByTagName("pre");
for(var i=0; i<pre_nodes.length; ++i) {
    var dum = pre_nodes[i].parentNode.insertBefore(create_searchfield(pre_nodes[i].innerHTML), pre_nodes[i]);
}


unfortunately, it doesn't work to right-click on these text fields and "create search..." :frown:
But I'm sure AyushJ will find a solution :yes:

Monday, 17. September 2007, 10:33:03

Here's a google translate bookmarklet for translating the active page:

javascript:location.href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=%s&hl=EN&ie=UTF-8&oe=UTF-8'


Syntax: tr from|to
Examples:
  • tr en|fr
  • tr en|de
  • ...


Cheers,
Guillaume

Monday, 17. September 2007, 10:38:30

Here's the "feeling lucky" search engine:
http://www.google.com/search?hl=en&q=%s&btnI=kudos

I call it "goto". Try:
  • goto reader
  • goto gmail
  • goto gcalendar
  • goto zoho
  • ...


I use this one all the time. I don't know of any other quicker way to access all those web-apps.
Cheers,
Guillaume

Monday, 17. September 2007, 11:09:36 (edited)

Subject: Twitting from the address bar

Ok, here's another neat little shortcut for all you twitterers out there. Go to Opera's search engines and add a new search engine. Call it "twit" or something.

Here's the address (replace the fields with your twitter username and password):
http://guillaume7:**********@twitter.com/statuses/update.xml

Here's the POST parameters:
status=%s



Now you can twit from the address bar:
"twit Testing my new twitter tool"
"twit Opera's great!"

Don't know how to do POSTs in bookmarks in Firefox. If anyone figures out how to do this in FF please let me know.

Cheers,
Guillaume
http://www.citeulike.org/user/guillaume
http://www.slideshare.net/griflet
http://webtopmania.blogspot.com
http://del.icio.us/griflet
http://www.facebook.com/profile.php?id=592394391

Monday, 17. September 2007, 13:33:04 (edited)

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2004

USA

Originally posted by Schneemann:

unfortunately, it doesn't work to right-click on these text fields and "create search..."

The reason that doesn't work is because your form element doesn't have an action attribute and your input element inside doesn't have a name.

Saturday, 24. November 2007, 15:29:27

Tweakerz

avatar

Posts: 114

Could someone explain how to know the query string for the site you wish to add? I use the right-click Search With and would like to add Google Images, but also would like to know for certain how the information is obtained, thanks.

Sunday, 25. November 2007, 00:37:56

sgunhouse

Volunteer

avatar

Posts: 52671

Flag City, USA

For most of us, we'd just go to the website and right-click in the search field, but that's fairly recent. In older versions, there was a program called "opsed" (Opera search editor) which would figure it out for you.

There are a few searches where right-clicking in a search field (and choosing Create search) won't work, no idea if opsed would have worked for those though. You know, sites that do some parsing in javascript first, for example.

Sunday, 25. November 2007, 10:07:02

Asle

avatar

Posts: 440

Originally posted by Tweakerz:

Could someone explain how to know the query string for the site you wish to add? I use the right-click Search With and would like to add Google Images, but also would like to know for certain how the information is obtained, thanks.


If you just want to see the query string, right-click in the search field to create search, then click the "Details" button.
Your searches are stored in \profile\search.ini, so you can also open that file and see/edit all details there.
Does that answer your question?

Sunday, 25. November 2007, 16:28:28

Tweakerz

avatar

Posts: 114

I am not trying to add to the drop down search box, I am trying to add to the highlight right-click and Search With, I see all this gibberish after the url so I know it can't just be http://images.google.com/imghp?hl=en&tab=wi but would need some other information as regular google in the search.ini looks like this URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8

Also I probably will need what the other stuff needs to be...

[Search Engine 1]
Name=&Google
Verbtext=0
URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8
Query=
Key=g
Is post=0
Has endseparator=0
Encoding=utf-8
Search Type=0
Position=-1
Nameid=1632215285
Deleted=0

Sunday, 25. November 2007, 18:29:42

Asle

avatar

Posts: 440

Originally posted by Tweakerz:

I am not trying to add to the drop down search box, I am trying to add to the highlight right-click and Search With


If you add a search by right-clicking a search field, it should pop up both in the drop-down list and the right-click menu.

Originally posted by Tweakerz:

I see all this gibberish after the url so I know it can't just be http://images.google.com/imghp?hl=en&tab=wi but would need some other information as regular google in the search.ini looks like this URL=http://www.google.com/search?q=%s&sourceid=opera&num=%i&ie=utf-8&oe=utf-8


:confused: What I get in the "Address" field when adding Google Images is this: http://images.google.com/images?hl=en&q=%s&btnG=Search+Images&gbv=2 . When you use the search, %s is substituted by the actual search text. Apart from that, this is what is sent to Google, I think.

Originally posted by Tweakerz:

Also I probably will need what the other stuff needs to be...


See http://operawiki.info/SearchINIEditing.

By the way, if you want to discuss this further, you should probably start a new thread. We are getting a little off topic in this one. :left:

Monday, 26. November 2007, 14:29:06

Tweakerz

avatar

Posts: 114

Thanks Asle, will see what I can do with that.

EDIT. You are great and I thank you, I didn't realize both are edited at the same time and I now have the right-click and search with as I wanted, many thanks!

Tuesday, 27. November 2007, 12:39:25

ess1x

avatar

Posts: 6

Last.fm:

http://www.last.fm/music/?q=%s

Tuesday, 27. November 2007, 16:30:03

BAMAToNE

Internet Sensation

avatar

Posts: 1857

Tuscaloosa, AL

Good one, ess1x!

Forums » Opera Community » General Opera topics » Customizing Opera