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 welcome.

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

Robert Błautquiris Tuesday, January 2, 2007 7:18:01 PM

Thank you for the explanation smile

ChristianResearchWizard Tuesday, January 2, 2007 9:34:09 PM

Hi João!
You are watched smile
http://operawatch.com/news/2007/01/how-to-make-google-services-opera-friendly.html


By the way - your script and your explanations sound very great. Thanks and keep up the good work.
Christian

Fabio Palliniflitz Tuesday, January 2, 2007 11:53:35 PM

xErath, thanks for doing what the giant Google cant do for us! ;-(

Please add a line with the script version so we can know when you update it!

João EirasxErath Wednesday, January 3, 2007 1:33:58 AM

Originally posted by flitz:

Please add a line with the script version so we can know when you update it!

Will do. Thanks wink

lolfangStahn Wednesday, January 3, 2007 1:55:24 AM

I would love to see a GPC (Page Creator) JS, it's the only app from Google that I use =\

Suscribed.

TreeGo Wednesday, January 3, 2007 5:29:33 AM

Thank you for helping Opera/Google users all over the world! smile

FataL Wednesday, January 3, 2007 6:06:23 AM

Thanks! up

wokacampaginabrasileira Thursday, January 4, 2007 1:21:19 PM

Google pages! lol

Moises Limamoises-l Thursday, January 4, 2007 6:42:00 PM

LoL Thanks!

FataL Thursday, January 18, 2007 7:46:51 AM

Any chance you can find a fix for Google contacts?
Se explanation there: http://my.opera.com/desktopteam/blog/show.dml/681582?startidx=150#comment2463174
Also I have two friend who use FF for Gmail just because their contact list doesn't update.

Jim Jimmasihaa Wednesday, February 14, 2007 2:13:23 AM

just wanted to say THANKS

Antonie PotgieterContrid Saturday, February 17, 2007 9:43:33 PM

Thank you very much for the script!!!

János, Vinczevinczej Monday, February 26, 2007 3:45:33 PM

Up to today the script worked very fine. up

But today in the Google Docs all buttons and the editor field are inactive . sad

Antonie PotgieterContrid Monday, February 26, 2007 3:58:17 PM


Up to today the script worked very fine.

But today in the Google Docs all buttons and the editor field are inactive .



Works fine here...

Mankai Sunday, March 18, 2007 10:35:11 PM

Thanks a lot for the script.
Do you know anything how to fix that on google´s personalized homepage mostly only one line from the RSS feeds is appears?
Thanks!

Alan Lualan0098 Wednesday, March 21, 2007 8:39:18 AM

Thanks for this good script, useful for me!! wink

Glenndixonge Wednesday, April 4, 2007 2:29:51 PM

Opera 9.1 - Win XP

Google spreadsheets is absolutely *not* fixed by this script. Had to mask as Firefox to even open it. Cell highlighting is off. Attempts to change column widths were very seldom successful. It is still *very* buggy.

sad

RomainHeitu Friday, April 20, 2007 5:27:31 PM

Hi all,
Seems good according to what other people say but... I can't manage to get it working.
I've put the JS in a personal folder, then specified this folder in the "user JavaScripts" line in the JavaScript advanced options, but Google Calendar still displays the annoying popup at startup...

boyu Friday, April 20, 2007 11:27:22 PM

thx for your work

Kamaleshkamalesh Saturday, April 21, 2007 2:17:56 AM

Thx for this, João...very nice! Good tweak for slideshows! Works great for Mac Opera.

Arthur WilkinsonGT500 Saturday, April 21, 2007 4:25:13 AM

When people ask me why I don't want a GMail account, I always laugh. Any company that can't take the time to test in my favorite browser isn't worth my time. Google doesn't want to make it all work in Opera, then I'll use something else.

Anyway, it's good to know that there are people out there making fixes for Google's code. I'll keep a link on my Personal Bar so that when people start complaining about Opera not supporting Google, I can show them the guy that made Google's code work without the need to rewrite Opera.

Great work xErath. wink

Kyle Bakerkyleabaker Saturday, April 21, 2007 6:11:06 AM

xEarth
Just wanted to say...you are the man! When will we come to a day when GIANTS aren't flat-out jerks to the rest of us? Working great!

János, Vinczevinczej Saturday, April 21, 2007 1:18:30 PM

I use Google Docs frequently. It works fine, no relevant error for me.

Spreadsheets doesn't work right, but for me is only Docs important, so the UserJs is very useful! Thanks xErath!

But indeed, it would be a minimum, that Google make Google programs Opera-compliant.

(undisclosed)Liberalist Saturday, April 21, 2007 5:11:34 PM

Thank you so much for the script, João.

neutrolio Friday, May 11, 2007 10:00:39 AM

Obrigado!

Waffa Margus MeigoWaffa Saturday, May 12, 2007 5:26:37 PM

Thank You for code.

Its shame that Google cant make their service more Opera indley.. of course - they are giant compared to opera.

Google should buy opera, they already hired many of Mozilla coders. I am sore soon there would be opera release 9.5 whit google beta support, and Opera 10 (aka Gbrowser 1.0) whit full google support.

- ONLY thing i like on Mozilla is that i can integrate scripts to Mozilla, this can be bad thing also if the addons are buggy.. (opera widgets are not just doing it all..). And second thing is the integrated speller to Mozilla - i can do spellcheck not automatically in every comment i write.




João EirasxErath Sunday, May 13, 2007 2:32:32 AM

Originally posted by Waffa:

Google should buy opera,

Please don't make such a foolish statement.

Joshua TangSnazy_Shua Monday, May 28, 2007 2:43:31 AM

Im sorry for the noob question, but how do I install the file?

MyOpera team, please fix this!fearphage Monday, May 28, 2007 9:16:00 AM

how do I install the file


http://userjs.org/help/installation

Srdjan Markovicsrdjan Wednesday, May 30, 2007 10:49:04 PM

Unfortunately, Google Notebook doesn't work.

chris34 Thursday, May 31, 2007 2:28:30 PM

thanks

Ondraondrab Monday, June 25, 2007 5:22:21 AM

Great job!

.Kite Geek Tuesday, June 26, 2007 4:31:56 PM

Dude, you ROCK!

Nxqd3051990 Friday, June 29, 2007 1:03:51 AM

OMG You're rock, Opera's rock :x
I just like Google docs :)
nXqd

Sn3ipen Monday, July 23, 2007 11:24:57 PM

I love this script but it doesnt make picasa work for me:s

GeeZuS Thursday, July 26, 2007 5:22:05 AM

Hey,

great app. I always thought the issue was more on Google's than Opera's side based on my knowledge of JS.
Thanks a lot, any chance you could post a new comment every time you update, since that is what the RSS feed reacts to?

MartinHyperY2K Thursday, July 26, 2007 12:23:45 PM

Hey,

i tried this UserJS, but spreadsheets isn't working. Can anybody help my on this problem? Can the URL in the UserJS be a problem? Eg. spreadsheets1.google.com?

best regards,

Martin

GeeZuS Saturday, July 28, 2007 1:56:50 AM

Hmm, after using this and setting spreadsheets to mask as IE (had to set for every single spreadsheet#.google)
It displays them fine in basic HTML, but once I switch to that I just get 404 errors.

quarkdrunkensurgeon Friday, August 3, 2007 7:06:23 PM

OMG I can uninstall that stupid slow Firefox... Thanx...

Sn3ipen Wednesday, September 5, 2007 12:55:30 PM

Thanks allot:)

@srdjan: I use Zoho Planner instead of google notebook. Works great in Opera and is even more future rich:)

http://www.planner.zoho.com

Deeoni$ Thursday, September 6, 2007 1:51:50 PM

Hi,after then Google Reader and Google Calendar has been updated today it's not work in Opera

taconsta Thursday, September 13, 2007 5:24:17 PM

1. Congratulations, nice idea!
2. For me as well, Spreadsheet does not work. Once I got a "404" error, but now it's simply not showing anything (blank page).
3. One more integration of GMail and GDocs: if you get a mail with a .doc or .xls file, in FF you have one more option: Open in Google Docs. You don't have that in Opera. I can guess why...

Keep it up!

João EirasxErath Thursday, September 13, 2007 7:06:18 PM

3. One more integration of GMail and GDocs: if you get a mail with a .doc or .xls file, in FF you have one more option: Open in Google Docs. You don't have that in Opera. I can guess why...


You can ask at the forum for the menu entries to do so.

Erik DahlströmMacDev_ed Monday, November 19, 2007 9:08:02 AM

Spreadsheets fails on trying to add a chart (in 9.2x and 9.5), though the preview displays the chart just fine. Also in 9.5 masking as Firefox seemed to work without needing any userjs.

PMoperafan2006 Monday, December 24, 2007 8:37:10 AM

Great effort.

aurreco Thursday, February 28, 2008 4:00:59 AM

could you fix the script so it makes google spreadsheets work in opera? I get a 404 not found error, as someone pointed out before.

thanks.

dapxin Thursday, July 3, 2008 9:17:16 AM

Also, I wonder if this actually allows google notebook to work?

google freaks me out the way they refuse to make these things work with Opera. Its terrorism !

Thx for this tho.

ianp5a Wednesday, August 6, 2008 8:58:35 PM

Good effort. Shame its only for hackers because it is so messy to install for normal people.

João EirasxErath Friday, August 8, 2008 1:55:57 PM

Saving a file to a directory is messy?

rainerwendland Friday, August 22, 2008 9:11:53 PM

Hi João!
Thank You for Your work!
Is there an update of the "fix-google-services.js" ?
I'm in trouble with google calendar in opera 9.52 since few days.
First it worked in opera, while I masked as internet explorer.
But now that doesn't help.

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

Any suggestions?

Ciao

Write a comment

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