Skip navigation.

Log in | Sign up

photo of Cosimo Streppone

Random hacking

Assume nothing. Code defensively. Keep it simple, stupid!

Ubiquity for Opera

, , , ,

I think Ubiquity is a pretty cool project, probably a bit overrated, but ... I thought it would be nice to try to build something like that for Opera, and learning UserJS along the way.

I managed to get the basics working. Right now, there's only one command, tran-no which takes you to the Google Translate page from Norwegian to English. If you have selected some text before bringing up "Ubiquity" (CTRL + SPACE), then typing tran-no + ENTER will translate that text for you.

Now I was trying to make it replace the text inline inside the page, instead of popping up a new tab with the Google Translate window. It seems that is somewhat harder, especially because the text you select might be broken up in several pieces, like:

This might be <b>your text</b>, so how do you   replace it?

Here it is: ubiquity.js

Ubuntu 8.04 and Perl OpenGL extensionUbiquity for Opera - UPDATED

Comments

Robert Jacobsen 6. February 2009, 10:01

Wow... I was wondering when someone would do this. Awesome, I have to try this out! :-)

Espen André Øverdahl 6. February 2009, 11:28

Hot. Very hot.

Aleksander 6. February 2009, 11:30

Awesome!

Steve Davis 6. February 2009, 11:55

Very cool. More features please!!!

Lawrence Eng 6. February 2009, 19:14

Nice start! Looking forward to more.

Martin 7. February 2009, 23:33

Cool!, I've changed the ctrl+space for the ctrl+q (chr 81) bc the ctrl+space was launching the home page at my opera. But it's a really nice start for a version for Opera.

Cosimo Streppone 8. February 2009, 20:33

Yes, I forgot to mention that CTRL + SPACE should be removed from the standard shortcuts...

Cosimo Streppone 8. February 2009, 20:57

And I added the weather command!
But before uploading a new version, it needs a working help screen... :-)

rick schoen 6. June 2009, 15:16

you are amazing!!! and an apparent genius

at least I know who to bother if I have questions here..hoping you add me as a friend

my page will be light hearted although I do have many interests other than what I've posted to this point in time

I love science and learning everyday but I sure don't have your computer knowledge..I'm very respectful and impressed!

kudos man and keep on keeping on

Cosmo

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies