Skip navigation.

exploreopera

| Help

Sign up | Help

Posts tagged with "javascript"

Zoom text only in web pages with Opera

, ,

Most of you are probably familiar with the zoom function of Opera. Opera lets you zoom the entire page, including pictures and flash animations, this is different from the zoom functionality other browsers have which is basically text zoom only. But how do you zoom text only in Opera?

Read more...

Dot.com 2.0 web app demo

, , , ...

The computer party Digilab 2007 was newly held in Porsgrunn, Norway. I didn't attend, but luckily they accepted competition entries from non-participants too. I submitted a small intro that was originally meant to be released at the Gathering 2006 called Dot.com 2.0. It ended up at third place (out of four? :-) ).

Anyway, it runs in Opera, uses Javascript, Canvas, SVG and various DOM techniques, no flash involved, pure open standards. It even uses the Opera Animation library :wink:

Check it out here: dst_dc20.zip ~10 MB (The giant size is due to a large .wav file included ;()

Pouët entry: http://www.pouet.net/prod.php?which=29946

UPDATE: Added some fixes for Firefox, but I won't spend much more time getting it to work there. I accept patches though, so feel free to send one :wink:

I also submitted this picture drawn by hand in Gimp, but it doesn't seem like it made it thru.

Feeling lucky? Get lucky with User Javascript.

, , , ...

People used to using Other Browser(tm) might have been missing the possibility of being automatically redirected to a search engine if they type in an non-existent address in the address bar.

Some browsers, including Opera allows you to automatically add a prefix and postfix so that say 'foo' becomes 'www.foo.com', but it normally stops there.

Fear not. A user actually asked for this feature in one of the IRC chat channels at http://my.opera.com/chat/ and being a person who likes challenges, I couldn't not try to see if it was possible to implement using User Javascript.

User-what? You might ask. Well, it just happens to be that Opera lets you run your own scripts on virtually any page out there. You put a script in a dedicated drawer and you tell Opera to look there when loading pages. The script might be run before a page loads or after it is finished, depending on elements found in the page, the domain of the page or other criteria.

Actually most of you have already been using this kind of technique without even knowing about it. Opera does run its own set of scripts on pages that are very badly designed, or plain wrong (mostly targetted at broken browsers like MSIE). These are carefully tailored scripts made in-house at Opera so you don't need to know about them. Although the JavaScript console reports whenever such a "hot-fix" is run.

Anyway, as it is, you can stroll over to the excellent User JavaScript repository site http://userjs.org and download the auto-search-forwarder script, put it in a directory of your choice and go into:
Preferences -> Advanced -> Content -> JavaScript Options
, then select the directory in the "My JavaScript files" gadget.

When typing addresses that don't exist in the address bar, you will now get redirected to Google's Feeling Lucky feature. That is namely the first hit searching on the term you typed.

Unfortunately any spaces you might have typed disappear, but you can circumvent that by using underscore, this means if you want to search for "foo bar", use "foo_bar".

Good luck :wink:

PS. For more User scripts that let you do other cool stuff, use http://userjs.org. For discussing User scripts and similar there is an own group right here on My Opera: http://my.opera.com/userjs
August 2008
SMTWTFS
July 2008September 2008
12
3456789
10111213141516
17181920212223
24252627282930