Google Chrome Forum  

Go Back   Google Chrome Forum > Google Chrome Discussion > Google Chrome Tips & Tricks

Reply
 
Thread Tools
Old 09-12-2008   #1
ace214
Junior Member
 
Join Date: Sep 2008
Posts: 3
ace214
Default Email Link with Gmail

Someone has posted a bookmarklet to email links with your default mail program, but for those who use Gmail as webmail, this will work.

Make a new bookmark and make the name Email with Gmail or whatever you want, and the URL
Code:
javascript:document.location='https://mail.google.com/mail/?ui=1&v...ment.location;
If you want a pop-up bookmarklet, use the following URL
Code:
javascript:window.open('https://mail.google.com/mail/?ui=1&v...ument.location);return false;
That currently opens a new tab. I'm working on getting the pop-out effect that Gmail has.
Unfortunately, middle-clicking the first one does not work, because when it opens it in a new tab, it is reading the URL and title from that new tab instead of the original one you wanted to to link to. I may work on a solution to this in the future.

Oddly this makes the text box in Gmail not the width of the screen. I'm not sure why that is, but it works just fine- just looks a little funny. If anyone can offer any wisdom to this, I would appreciate it.
ace214 is offline   Reply With Quote
Old 09-12-2008   #2
Charlie
Chrome Spot Moderator
 
Charlie's Avatar
 
Join Date: Sep 2008
Location: Washington State
Posts: 849
Charlie
Default Re: Email Link with Gmail

Nice. I'll have to try this later.
__________________
Visit DVD neXt COPY Support Forum for all your DVD Backup Needs.
Charlie is offline   Reply With Quote
Old 09-12-2008   #3
chico
Member
 
chico's Avatar
 
Join Date: Sep 2008
Posts: 71
chico
Default Re: Email Link with Gmail

Hey, this works great! Thank you! ;D
chico is offline   Reply With Quote
Old 09-13-2008   #4
bittercrash
Junior Member
 
Join Date: Sep 2008
Location: Belgium
Posts: 13
bittercrash
Default Re: Email Link with Gmail

Excellent! Been looking for that for the past week. Thanks a lot!
bittercrash is offline   Reply With Quote
Old 09-13-2008   #5
bittercrash
Junior Member
 
Join Date: Sep 2008
Location: Belgium
Posts: 13
bittercrash
Default Re: Email Link with Gmail

The bookmarklet gives me an error (Bad Request - Error 400) or only opens Gmail inbox in a new tab. Only on this site (Chromespot) it actually works. How very odd ???
bittercrash is offline   Reply With Quote
Old 09-13-2008   #6
kimsue
Junior Member
 
Join Date: Sep 2008
Posts: 8
kimsue
Default Re: Email Link with Gmail

Quote:
Originally Posted by bittercrash
The bookmarklet gives me an error (Bad Request - Error 400) or only opens Gmail inbox in a new tab. Only on this site (Chromespot) it actually works. How very odd ???
Same here.
kimsue is offline   Reply With Quote
Old 09-13-2008   #7
kimsue
Junior Member
 
Join Date: Sep 2008
Posts: 8
kimsue
Default Re: Email Link with Gmail


Try this



Code:
javascript:document.location='https://mail.google.com/mail/?view=cm&fs=1&to= &=1&su='+document.title+'&body='+document.location;

new tab
Code:
javascript:window.open('https://mail.google.com/mail/?view=cm&fs=1&to= &=1&su='+document.title+'&body='+document.location);return false;
I hope this works. I actually don't have a clue as to what I'm doing.
kimsue is offline   Reply With Quote
Old 09-14-2008   #8
bittercrash
Junior Member
 
Join Date: Sep 2008
Location: Belgium
Posts: 13
bittercrash
Default Re: Email Link with Gmail

Yes! It works! Good job!
bittercrash is offline   Reply With Quote
Old 09-14-2008   #9
kimsue
Junior Member
 
Join Date: Sep 2008
Posts: 8
kimsue
Default Re: Email Link with Gmail

Even better: This is gmailthis
Code:
javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('https://mail.google.com/mail/?view=c...1&to=&su=' + escape(document.title) + '&body=' + escape(Q) + escape('\n') + escape(location.href) + '&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);
kimsue is offline   Reply With Quote
Old 09-15-2008   #10
bittercrash
Junior Member
 
Join Date: Sep 2008
Location: Belgium
Posts: 13
bittercrash
Default

This last one opens a popup..... but tells me there's something wrong with my Gmail account (Temporary Error - 502), while I have no problem whatsoever with it.
bittercrash is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
vBulletin Style by: vbskinpixel.com