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)

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 11:30.

vBulletin® Version 3.8.8