Tuesday, 6. February 2007, 18:02:44
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, 21:16:20
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
Friday, 9. February 2007, 01:41:16
Originally posted by Trailing:
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.What is google define? Is it just a replacement dictionary and what does the infamous google mp3 hack do?
Friday, 9. February 2007, 02:44:00
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, 12:16:03
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
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
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 .
Thursday, 29. March 2007, 18:38:48
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
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)
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!
Thursday, 29. March 2007, 18:49:46
LEO Deutsch-Englisches Wörterbuch - "leo"
Wikipedia (the german one) - "w" or "wiki"
Modified google searches (Copy link address)
Java documentation (Java 2 Platform SE 5.0) - "j"
Opera forums site search (my.opera.com/community/forums) - "of"
Opera domain search (opera.com) - "od"
Opera Wiki search (operawiki.info) - "ow"
Saturday, 14. April 2007, 14:16:18
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)
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
Originally posted by andre1000:
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 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.
For the modified google searches, I can't give you an address - these do only exist in your search.ini file
Originally posted by andre1000:
Tools -> Preferences -> Search.also - could someone remind me how to delete the window I add if I happen to adda search that I don't want?
Saturday, 14. April 2007, 14:35:32
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" ???
Thursday, 28. June 2007, 00:27:32 (edited)
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')})()
Saturday, 14. July 2007, 19:13:20
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..."
But I'm sure AyushJ will find a solution
Monday, 17. September 2007, 10:33:03
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
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)
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)
Originally posted by Schneemann:
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.unfortunately, it doesn't work to right-click on these text fields and "create search..."
Sunday, 25. November 2007, 00:37:56
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
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
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
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
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.
Forums » Opera Community » General Opera topics » Customizing Opera
