Lost password? | Help

[ advanced search ]


Go to last post

Saturday, 1. December 2007, 22:52:34

dbloom

avatar

Posts: 48

USA

Gmail 2.0 for Opera

http://futurama.googlepages.com/gmail_2_fix.js

This script makes the new version of Gmail work in Opera 9.5 (and "somewhat" in Opera 9.24).

Give it a whirl and let me know if you run into any bugs! Once you have the user JS installed, you can login to Gmail 2.0 here: http://mail.google.com/mail/?ui=2

Saturday, 1. December 2007, 23:08:08

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

I couldn't use Gmail 2.0 in Opera. The link changes to ui=1 even after I installed the script.

Saturday, 1. December 2007, 23:34:21

dbloom

avatar

Posts: 48

USA

Are you using US English for the language?

Saturday, 1. December 2007, 23:44:03

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

Yes.

Saturday, 1. December 2007, 23:50:16

dbloom

avatar

Posts: 48

USA

Can you login to Gmail 2.0 in Firefox?

Sunday, 2. December 2007, 00:45:06

kyleabaker

mr. kyleabaker

avatar

Posts: 188

USA

You all will probably have to enable userjs to run on https ( opera:config#UserPrefs|UserJavaScriptonHTTPS ). Also, make sure your browser.js file is updated.

Sunday, 2. December 2007, 00:45:55

Maulkin

French Section Moderator

avatar

Posts: 257

France

Seems to work fine here with opera 9.5 beta build 9681.

Sunday, 2. December 2007, 00:56:55

dbloom

avatar

Posts: 48

USA

The script seems to be pretty stable on my machine, but I've heard reports from others about random JS errors and things not working unless you reload. Please reply and let me know if you run into any of those problems!

Also, I forgot to mention that there are a few known issues with the rich text editor. The "highlight" tool highlights too much stuff (it highlights the parent element of the selected text instead of just the selected text), the "quote" tool acts weird if you don't have any text selected, and the bulleted list stuff is iffy. Most of these bugs are due to Google putting Opera down IE's codepath (they have checks that are basically like "if (firefox||webkit) { standards code } else { ie code}"), and hopefully these will be fixed by Google soon...

Sunday, 2. December 2007, 02:42:11

drlaunch

Traveler From Beyond

avatar

Posts: 1003

Norway

Silly me. I forgot to enable UserJS for mail.google.com. :lol:

It's working fine now. Could you make the script switch to the new interface automatically if the old one is launched?

Sunday, 2. December 2007, 03:37:22

kyleabaker

mr. kyleabaker

avatar

Posts: 188

USA

Originally posted by drlaunch:

Could you make the script switch to the new interface automatically if the old one is launched?



I'd only make this optional. If you decide to do this then you should make a var at the top of the script for preferences, etc. Sometimes I switch between the two.

Sunday, 2. December 2007, 04:07:25

dbloom

avatar

Posts: 48

USA

I could make it use a cookie to do this.

Sunday, 2. December 2007, 19:10:48

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

I think a simple var at the top would be easiest to turn on and off. Also what about the accounts that don't have it and you'll end up in an infinite loop.

Monday, 3. December 2007, 14:29:14

Hi

Just like drlaunch, I'm also unable to make the JS work (even though I see you now discovered your problem).

My Opera is set to allow User JS, also allow it on https, I've added mail.google.com to the site preferences page & even restarted Opera! The ?ui=2 is still reset to ?disablechatbrowsercheck=1 when logging in.

Any suggestions? Using XP SP2, Opera 9.5 beta & language is set to UK English.

Monday, 3. December 2007, 14:58:31

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

I believe US English is required

Monday, 3. December 2007, 17:43:03

After i set US English and UserJS, Gmail2 started to work in 9681 Windows build. Everything seems to work now: chat, composing mail, new 'contacts'. Had no visible problems at all working in it for 10 minutes, except for 'selection' glitches which i believe are Opera's fault.

Though there were numerous error in error console: 'window object not found' and 'incorrect null value for height CSS-property' but they were harmless as i see.

Monday, 3. December 2007, 19:34:51

dbloom

avatar

Posts: 48

USA

The "undefined window" bug is an Opera bug, but it doesn't break anything. (It is thrown from an event handler in browser.js)

The CSS errors are because Google is not well known for making validating HTML/CSS :-)

I ocasionally get JS errors in Gmail 2.0, but no more than I get when I use it in Firefox...

If you guys really want to stress test Gmail, try setting it to show 100 messages per page and just click randomly between different views ("inbox"/"chat"/etc) while also clicking randomly on messages in those views. Be sure to try switching to a different view, then opening a message in the current view before the new view loads. You may get JS errors when you do this (which is normal and reproducable on Firefox), but Gmail should not become "unresponsive" and require a reload to become functional again.

Monday, 3. December 2007, 23:25:55

I've been having problems labelling new mails. If I try to add a message to an existing label a new label is instead created with the same name.

Anyone else seeing this?

Monday, 3. December 2007, 23:29:41

dbloom

avatar

Posts: 48

USA

Try in Firefox and make sure it works there.

Does the problem persist if you reload?

Monday, 3. December 2007, 23:56:03

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

Originally posted by BtEO:

Anyone else seeing this?

Repro'd in latest

Tuesday, 4. December 2007, 12:45:47

Thanks fearphage. Setting gMail to US English did the trick! This is great, since Opera is my favourite browser and the gMail problem has always been a pain. Cheers!

Tuesday, 4. December 2007, 16:06:11

dbloom

avatar

Posts: 48

USA

Originally posted by BtEO:

I've been having problems labelling new mails. If I try to add a message to an existing label a new label is instead created with the same name.

Anyone else seeing this?



Fixed.

Wednesday, 5. December 2007, 18:32:20

piotersu

avatar

Posts: 13

Poland

Thanks for the script. Google's policy to discriminate Opera is really annoying.

Only one minor issue: horizontal scrollbar is always shown, even if there's nothing to scroll through.

Wednesday, 5. December 2007, 19:22:18

dbloom

avatar

Posts: 48

USA

Originally posted by piotersu:

Only one minor issue: horizontal scrollbar is always shown, even if there's nothing to scroll through.


Known issue (Opera bug)...

Wednesday, 5. December 2007, 22:48:27

fearphage

Trained Swordsman of Unwanted Opera Termination

avatar

Posts: 2022

USA

bug numbers are nice when/if you know them.

Wednesday, 5. December 2007, 22:54:53

dbloom

avatar

Posts: 48

USA

Originally posted by fearphage:

bug numbers are nice when/if you know them.


292597

Friday, 7. December 2007, 03:50:03

dbloom

avatar

Posts: 48

USA


The script now adds a checkbox to the Gmail login page to enable the new version.
(Note: This only works if you have user JS enabled for SSL in opera:config#UserPrefs|UserJavaScriptonHTTPS )

Download: http://futurama.googlepages.com/gmail_2_fix.js

Friday, 7. December 2007, 09:33:03

Creer

avatar

Posts: 10

Poland

Hi, its works, but i want ask u do u have problem with gmail, i mean when i log in to this service or google reader - my cpu used about 70-90 power of proccesor.... Do u have the same problem? When i close tab it looks ok.

Friday, 7. December 2007, 12:52:43

dbloom

avatar

Posts: 48

USA

Originally posted by Creer:

Hi, its works, but i want ask u do u have problem with gmail, i mean when i log in to this service or google reader - my cpu used about 70-90 power of proccesor.... Do u have the same problem? When i close tab it looks ok.



Gmail 2.0 isn't too bad on my CPU when I have it in a background tab (Opera usually hovers around 15% CPU). Google Reader has been killing my CPU lately, though (it pushes Opera to 50%, which is as high as it will get on my dual-core processor).

Saturday, 8. December 2007, 12:57:13

Tristen

avatar

Posts: 9

Thank you for taking the time to create and maintain this script.

Saturday, 8. December 2007, 16:33:17

Seems i can't 'Edit label'. When i press this link (green 'Labels' block on the left) all i get is some error in console:

JavaScript - http://mail.google.com/mail/?ui=2&view=bsp
Event thread: click
Error:
name: Error
message: %152

Saturday, 8. December 2007, 16:39:44

thanks guys! who-ever is responsible for this script! I now almost NEVER have to use another browser...

Saturday, 8. December 2007, 17:36:59

dbloom

avatar

Posts: 48

USA

Originally posted by profiT:

Seems i can't 'Edit label'. When i press this link (green 'Labels' block on the left) all i get is some error in console:



Seems to work for me. Can you reproduce the problem after reloading Gmail? Also does the label's name have any unusual characters?

Saturday, 8. December 2007, 17:38:08

dbloom

avatar

Posts: 48

USA

I've updated the script (same download URL: http://futurama.googlepages.com/gmail_2_fix.js )

The "highlight text" feature in the rich text editor should now work. Also, the "quote" feature should be less buggy (but still not perfect...).

Saturday, 8. December 2007, 17:49:43

dbloom

avatar

Posts: 48

USA

Originally posted by mcmxtr:

Yes!! That Working....

look at



Gmail 2.0 currently only works if you set your Gmail account to US English (Google has not rolled it out to other languages yet).

Sunday, 9. December 2007, 05:47:35

kailapis

^^;

avatar

Posts: 140

Works nicely :smile:
Thanks.

Monday, 10. December 2007, 12:01:50

djp

avatar

Posts: 116

This is all great work by you guys who know js really well.

What I wonder, though, how easily opera will be able to fix this in the next beta build of 9.50 - hopefully easy peasy if you guys can do it via a script hack.

Sunday, 16. December 2007, 00:06:07

Elatoxori

avatar

Posts: 2

Hi all,:smile:

I downloaded Opera today and I all ready love it.
The only problem I have is when I click on any hyperlinked email address, a Gmail compose window will not open so I can send a message to that address from Gmail.

Please help

Ps. I hope I am at the right place because for the life of me I could not start a topic:doh:

Sunday, 16. December 2007, 00:51:03

ameer123456789

Ameer

avatar

Posts: 358

Maldives

You always have more than one way to do a thing in Opera. Here are two possible ways to tackle your issue:

# http://my.opera.com/Rijk/blog/2006/07/11/mailto-to-webmail

# Try this UserJS GmailTo.js

Sunday, 16. December 2007, 21:51:47 (edited)

Here's another webmail compose script (and 3 others mentioned in the file, with BeforeMailtoURL.js being my newest one). I use them to test my mailto uri spec and to test conformance with Thunderbird's parsing etc.

Sunday, 16. December 2007, 07:20:49

Elatoxori

avatar

Posts: 2

Thank you all:jester:
My problem was solved by goiing:
1)tools
2)prefereces
3)advanced
4)edit - mailto
5)open with defult application
6)and if you have gmail notifier the command is there:up:



Sunday, 16. December 2007, 08:35:25

ameer123456789

Ameer

avatar

Posts: 358

Maldives

That's what I said. In Opera you have multiple alternatives to do a single thing. That is what we call choice.

Sunday, 16. December 2007, 13:08:18

ameer123456789

Ameer

avatar

Posts: 358

Maldives

Originally posted by profiT:

Contact pop-up dialog got misplaced:[img]http://img264.imageshack.us/img264/8606/misplacedpopuppu9.gif


Is it just for once or always?
Mine is working fine.

Sunday, 16. December 2007, 13:25:17

Originally posted by ameer1234567890:

Is it just for once or always?Mine is working fine.


I see it for a few days already. Also, i've deleted cache and dialog still pops up in unexpected places.

Sunday, 16. December 2007, 13:45:22

ameer123456789

Ameer

avatar

Posts: 358

Maldives

Which version of Opera are you using?
Also make sure that you have the latest version of the script installed.

Sunday, 16. December 2007, 14:10:44

Originally posted by ameer1234567890:

Which version of Opera are you using?


Latest build available: Windows, 9694.

Originally posted by ameer1234567890:

Also make sure that you have the latest version of the script installed.


That was it. I've updated the script, and it's ok now.

Thanks.

Sunday, 16. December 2007, 15:54:22

piotersu

avatar

Posts: 13

Poland

Originally posted by ameer1234567890:

You always have more than one way to do a thing in Opera. Here are two possible ways to tackle your issue:

# http://my.opera.com/Rijk/blog/2006/07/11/mailto-to-webmail

# Try this UserJS GmailTo.js



Neither of these work for me (using Linux). Using the custom email program gives me "Bad Request Error 400" from Gmail while the user js infinitely asks me "This form is being submitted via e-mail, revealing your name and e-mail address to the recipient. Do you want to continue?" question.

Sunday, 16. December 2007, 16:02:52

ameer123456789

Ameer

avatar

Posts: 358

Maldives

Originally posted by piotersu:

Neither of these work for me (using Linux). Using the custom email program gives me "Bad Request Error 400" from Gmail while the user js infinitely asks me "This form is being submitted via e-mail, revealing your name and e-mail address to the recipient. Do you want to continue?" question.


Which version of Opera are you using?

Sunday, 16. December 2007, 16:40:58

piotersu

avatar

Posts: 13

Poland

Originally posted by ameer1234567890:

Originally posted by piotersu:

Neither of these work for me (using Linux). Using the custom email program gives me "Bad Request Error 400" from Gmail while the user js infinitely asks me "This form is being submitted via e-mail, revealing your name and e-mail address to the recipient. Do you want to continue?" question.


Which version of Opera are you using?


Latest Linux build - 1719.

Monday, 17. December 2007, 09:26:51

ameer123456789

Ameer

avatar

Posts: 358

Maldives

I am not very sure if it works different in Linux. It works perfect on my Windows machine with 9.5 beta. Give me some time to do some research on it. Will be back soon.

Forums » Opera Community » General Opera topics » User JavaScript