maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Better Google for iPhone v2 (https://talk.maemo.org/showthread.php?t=28604)

apopelo 2009-04-28 13:40

Better Google for iPhone v2
 
I've created a greasemonkey script that allows to use current version of GMail for iPhone on a tablet. It avoids shrinking width to 320px and proportionally scales all elements. Also it scales iPhone version of Google Reader.

Screenshot:
http://popelo.com/trash/better-googl...screenshot.png

I already switched from standard GMail interface to the iPhone version, it works very nicely.

How to install:
  1. If you don't have Greasemonkey installed - get it from here
  2. Install "Better Google for iPhone v2" script from userscripts.org
  3. Open iPhone version of GMail on your browser. No need to change useragent, you can just use special links: for GMail - http://mail.google.com/mail/x/gdlakb-/gp/, for Google Reader - http://www.google.com/reader/i/
  4. Enjoy :)


UPDATE
For those of you, who doesn't want font scaling in GMail and Reader I created a basic version of the script, which only avoids shrinking of GMail window and removes a Google Reader logo.
Install basic version of Better Google for iPhone v2.

Laughing Man 2009-04-28 14:49

Re: Better Google for iPhone v2
 
Thanks. This gives me an idea though.. Greasemonkey for Tear?

j d 2009-04-28 15:03

Re: Better Google for iPhone v2
 
Thank you so much!

I find the full gmail website really is too much for the tablet, and the ordinary mobile version is too basic. It does annoy me just how good iPhone users get it.

The only thing i would say is I actually prefer a smaller font size, especially for google reader. I ended up removing it from the greasemonkey included pages list because unlike gmail the iphone version of reader actually did work fine.

Frank Banul 2009-04-28 15:24

Re: Better Google for iPhone v2
 
Try the html version of gmail, it's a nice compromise.

https://mail.google.com/mail/?ui=html&zy=a

Frank

Bundyo 2009-04-28 18:46

Re: Better Google for iPhone v2
 
Um, the iPhone version of GMail already looks like that in Tear, assuming you add this CSS rule to userstyles.css:
http://www.internettablettalk.com/fo...219#post282219

Oh, and change the user-agent.

GeraldKo 2009-04-28 19:01

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by Bundyo (Post 282803)
Um, the iPhone version of GMail already looks like that in Tear, assuming you add this CSS rule to userstyles.css:
http://www.internettablettalk.com/fo...219#post282219

Oh, and change the user-agent.

OTOH, it's great not to have to change the user-agent, as GMail is, for me, the only thing for which I want the iPhone format.

Is Greasemonkey not tear-compatible since tear isn't Firefox-based?

Once we can do site-specific format changes, like you've said you intend to implement, then would we also be able to skip the user_agent change to get GMail to display iPhonically?

Bundyo 2009-04-28 21:11

Re: Better Google for iPhone v2
 
Not exactly - most userscripts are not XUL based, so they can be executed in any browser that supports them. The interface to add them and execute them automatically is missing in Tear, though I'm considering something like it. Think of them like bookmarklets without bookmarks :)

mfortner 2009-04-29 02:29

Re: Better Google for iPhone v2
 
Oh I like this very much. Perhaps more the potential.

seventh 2009-05-01 14:01

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by j d (Post 282718)
Thank you so much!

I find the full gmail website really is too much for the tablet, and the ordinary mobile version is too basic. It does annoy me just how good iPhone users get it.

The only thing i would say is I actually prefer a smaller font size, especially for google reader. I ended up removing it from the greasemonkey included pages list because unlike gmail the iphone version of reader actually did work fine.

really great job thank you;
"avoid shrinking to 320px" makes this the best gmail option imo..
but i also prefer the default fonts for reader and gmail,
if someone explain to me how to modify the code for using the default font and button sizes i'd really appreciate it..

apopelo 2009-05-01 15:47

Re: Better Google for iPhone v2
 
For those of you, who doesn't want font scaling in GMail and Reader I created a basic version of the script, which only avoids shrinking of GMail window and removes a Google Reader logo.

Install basic version of Better Google for iPhone v2.

dkwatts 2009-05-01 16:00

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by apopelo (Post 283629)
For those of you, who doesn't want font scaling in GMail and Reader I created a basic version of the script, which only avoids shrinking of GMail window and removes a Google Reader logo.

Install basic version of Better Google for iPhone v2.

Any idea on how to implement your script in Tear?
-it eliminates the auto-scrolling back to the top "bug" when used with greasemonkey

seventh 2009-05-01 16:24

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by apopelo (Post 283629)
For those of you, who doesn't want font scaling in GMail and Reader I created a basic version of the script, which only avoids shrinking of GMail window and removes a Google Reader logo.

Install basic version of Better Google for iPhone v2.

thank you very much, this is great..

apopelo 2009-05-01 20:08

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by dkwatts (Post 283633)
Any idea on how to implement your script in Tear?
-it eliminates the auto-scrolling back to the top "bug" when used with greasemonkey

Window shrinking and scrolling back to the top in GMail for iPhone are done using JavaScript. So to fix this we need to have some way to modify a part of original JavaScript code. In MicroB Greasemonkey is used for this purpose.

As for Tear, I currently don't know about any way how to change source code of a webpage on client-side or inject user-defined JavaScript code into it.

Tear has a nice property for modifying css on client-side - "user_stylesheet_uri". If there was a similar thing for user-defined javascript (like "user_script_uri"), then we could add a user-defined scripts and execute them (and hopefully fix the GMail).
This is just an idea, I don't know if it is implementable.

YoDude 2009-05-02 01:38

Re: Better Google for iPhone v2
 
This is great, thanks much.

BTW, if you use http://www.google.com/m/gp?page=2#gmail for mail you will now have a nifty navigation bar at the top of the page. :)

Also; Can you help with http://www.google.com/m/ig by kicking up the font scale to 150% ?


This could be HUGE for the tablets... They will pro'ly write songs about you if you grease this one >> http://www.google.com/m/gp?page=2#docs

Bundyo 2009-05-02 08:34

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by apopelo (Post 283718)
Window shrinking and scrolling back to the top in GMail for iPhone are done using JavaScript. So to fix this we need to have some way to modify a part of original JavaScript code. In MicroB Greasemonkey is used for this purpose.

As for Tear, I currently don't know about any way how to change source code of a webpage on client-side or inject user-defined JavaScript code into it.

Tear has a nice property for modifying css on client-side - "user_stylesheet_uri". If there was a similar thing for user-defined javascript (like "user_script_uri"), then we could add a user-defined scripts and execute them (and hopefully fix the GMail).
This is just an idea, I don't know if it is implementable.

There's a post on the previous page in this thread about the GMail in Tear and strangely enough it doesn't scroll to top for me when logging in GMail using Tear, iPhone user-agent and the CSS in question (I revised the CSS just now).

dkwatts 2009-05-02 10:13

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by Bundyo (Post 283871)
There's a post on the previous page in this thread about the GMail in Tear and strangely enough it doesn't scroll to top for me when logging in GMail using Tear, iPhone user-agent and the CSS in question (I revised the CSS just now).

Strangely in Tear,
I get auto scroll back to the top for
http://mail.google.com/mail/x/gdlakb-/gp/ (gmail in iphone mode)
http://mail.google.com/mail/x/mog-/gp/ (select gmail from google.com)
but, no auto scroll back to the top for
http://mail.google.com

Bundyo 2009-05-02 11:13

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by dkwatts (Post 283885)
Strangely in Tear,
I get auto scroll back to the top for
http://mail.google.com/mail/x/gdlakb-/gp/ (gmail in iphone mode)
http://mail.google.com/mail/x/mog-/gp/ (select gmail from google.com)
but, no auto scroll back to the top for
http://mail.google.com

Dunno why ;)

apopelo 2009-05-02 12:13

Re: Better Google for iPhone v2
 
Quote:

Originally Posted by YoDude (Post 283837)
BTW, if you use http://www.google.com/m/gp?page=2#gmail for mail you will now have a nifty navigation bar at the top of the page. :)

Cool, thanks for this link.
I've updated the basic version of the script for better use with this page.
Changes:
  • fixed height of inner window
  • fixed width of Google Docs window
  • fixed width of the mail subject in GMail
  • you can add more than three tabs at top now (More --> Change tabs)

Install basic version of Better Google for iPhone.

I'll also update the main version of the script later - will add scaling for Calendar and iGoogle page.

mfortner 2009-05-03 00:15

Re: Better Google for iPhone v2
 
http://www.google.com/m/gp?page=2#calendar
I cannot get an event saved. The save button seems dead.

arj 2009-05-07 07:09

Re: Better Google for iPhone v2
 
Cool. Gmail now works pretty damn nice. We just need to fix the scroll to top.

Anyone know why this doesn't work in offline mode link the android and iphone?


All times are GMT. The time now is 10:08.

vBulletin® Version 3.8.8