Skip navigation.

web:config

tips and tricks for the interwebs

The world through a Google

, , , ,

Note: I'm not in any way affiliated to Opera Software or Google Inc. The opinions expressed here are my own only :spock: .

After having gained some notoriety, both in this community, and outside, I feel like I should announce probably the most useful user script I've made. Unlike what you may think it's not an enhancement, but a unified patch from some of the most awful discrimination on the web: Google services.
Unlike what many not-so-techie-people think, Google is not superman.
quiris asked me:

Originally posted by quiris:

Many Fx zealots complains in comments that it's Opera fault, not Google's. So xErath, could you explain the all patched problems in Google services are necessary because of bugs in Opera or rather because of Firefox/IE-centric code?

Here's the answer for you all. No software is flawless, all have problems, quirks and bugs to workaround. I not saying Opera is bug ridden. Much on the contrary, IE has some of the worst DOM support ever, and Mozilla too has it's quirks and mis-behaviours. As consequence, developers make their applications against browser behaviours instead of the specification. This eventually breaks Opera which gets some workaround for one of those browsers bugs, which misbehaves, or too hits a bug which needs a workaround. So it's a bit of all issues, browser specific code, Opera quirk, or bad object detection.
For many of those Google services to work, the compatibility would be ensured by fixing problems on both sides. Guess what? Opera is doing its job, but Google isn't because they probably feel like 1% of the market and the Wii users aren't worth it. Google definitely doesn't like you.
So I avenged many Opera users, and did a patch for many Google services to work in Opera, mainly because I use Google too a lot.

Where's a description of what the script does:
  • Google spreadsheets - nothing much to fix. Simply reverses the mousewheel, so when you roll it down, the pages goes down. It's a known quirk. Then it warns the user to Mask as IE, if it's not, which is the only way for the site to work. If the browser is Masked as IE, the page tries to use IE's css filters to display transparent PNGs. So there's a workaround for this one too.
  • Google Calender - simply makes the "browser not compatible" notification to go way, and for the create event date popups to work.
  • Google Picassa Web - simply overrides bad browser sniffing. Now the website works just fine, including the slideshow (shame on them :irked:)
  • Google Docs - this is more complicated. The writely team, which built the editor you see thrived to have their application working in the 4 major browsers: IE, Moz, Opera and Saf/Konq. The word Safari is scattered all over the code, to workaround it's problems (Safari's DOM was weak at that time). But then Google ate writely, and all efforts for interoperability were squashed. The patches fixes many issues related to bad object detection, and overrides a few quirks in Opera.


I hope you put this script to good use, and have more fun using it, than I have writing it :right: .

Here you go:
fix-google-services.js

Next stop for me might be Google Page Creator, because it seems to share components with the new Google Groups beta. Refer to this post for updates.

Edit: BtEO worded wonderfully mine and other Opera's power users sentiments.

Edit 2 (21-april-2007): I have no intentions of bad mouthing Writely's developers, which previously showed interest for Opera. It seems after all, that one of the major blockers for Safari, are bugs related to selections and designMode, although the current Safari 3 nightlies seem promising. In the mean time, there was a little update to google docs javascript code a bit more Opera friendly. Thanks to them.
I've done some heavy work with google pages, but it's a nut terribly hard to crack. Google pages developers really only care for 2 browsers, which flooded the code with a enormous amount of browser quirks usage, or using Mozilla or IE's bugs as features.
I'm aware that spreadsheets isn't working fine. IT seems a bit unstable: most of the time it works, but them all the sudden is seems broken. I have no intention of debugging more. If you want a real spreadsheets application try EditGrid.
Currently I have little time to improve the script, so contributions are wellcome.

Edit 3 (11-april-2009): the script was updated, which was simply removing deprecated code. Currently, docs, spreadsheets and the calendar work very well. kudos to Google. picassa is the odd one left.

Note: script updated 11-April-2009

Developer tools unleashed

Comments

João Eiras 25. August 2008, 21:26

Originally posted by rainerwendland:

I'm in trouble with google calendar in opera 9.52 since few days.


Can you elaborate ? It works fine for me

Originally posted by rainerwendland:

Also Your .js didn't help. I put it into the opera-profile-folder and wrote the path into preferences .... UserJavaSript Data.


Instructions: http://www.opera.com/support/tutorials/userjs/using/#writingscripts

Originally posted by rainerwendland:

Is there an update of the "fix-google-services.js" ?

So far, spreadsheets is the only site failing.
Use zomg's script http://zomg.thegroup.fi/userjs.zip.
The others seen to be ok. Some of these services got updated, and some of these patches now might not do anything, but currently I don't have much patience to redebug everything P:

dapxin 4. September 2008, 08:08

still no joy on google notebook ? :frown:

dapxin 11. April 2009, 05:40

x!
It would be helpful if you leave a comment when you update the post - just so we get alerts to that effect :smile:

Or you may simply repost the entry or something. Thank YOU!

João Eiras 11. April 2009, 21:07

Originally posted by dapxin:

It would be helpful if you leave a comment when you update the post


whoops p: I forgot !

metude 3. July 2009, 17:52

Blogger Fixer? (For Opera 10)
Opera 9.64 doesn't support blogger.com but Opera 10 can view.

GeeZuS 10. July 2009, 11:31

So I've got the new version and I'm just looking at the script (which looks a lot smaller than I remember it!) and I really like the look of it... Not had any problems yet, but, I'm glad you are updating this.

Much appreciated.

Florin Jurcovici 16. July 2009, 18:14

Me too, me too!

I mean, trouble with the calendar.

The actual problem is a very simple one: the fields where you enter the date and duration of an event are hidden below a field where you set how the event repeats. The user JS should just change some positioning properties on one or more divs, probably - provided you know which those are.

I don't have the time to hack the google code or the fix-google-services code. If you'd be able to provide a fix on a short term, I suppose you'd make a lot of people happy.

Florin Jurcovici 17. July 2009, 06:06

BTW, your puzzle 1500 photos look frightening :yikes:, especially the ones where the puzzle is in its incipient solving stages. On the other hand, they may be an explanation of how you got the patience to hack the google code :up:.

Florin Jurcovici 2. August 2009, 17:30

Calendar again. I hacked some more, it seems it isn't that some fields don't get displayed. The form for entering/editing a new calendar entry is generated dynamically. For some reason, it seems the script stops somewhere in the middle, instead of finishing what it has to render. Any suggestions about what I might do to find exactly where and how it stops?

Oleh Namaka 3. September 2009, 00:55

So what about picasaweb.com? Are there any plans at least to try to fix its side bar issues?

Tank you.

Florin Jurcovici 9. September 2009, 06:54

Happy again! Opera 10 has no longer issues with google's calendar.

XenoAntares 14. September 2009, 12:30

Hey xErath,

there's most probably a mismatch in the spelling of the variable name ts vs tt in the lines 74 /75 of the 20090411 version. ;)

João Eiras 14. September 2009, 15:32

Oh, that's right, thanks :smile:

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

Download Opera, the fastest and most secure browser