i using "gmail this!" bookmarklet send url , selected text using mini compose window through gmail. still need type in recipient , click on send.
i wondering if possible pass recipient in code gmail can use need click send button
here code i'm using:
javascript:(function(){var%20w=window,d=document,gs='getselection';var%20s=(''+(w[gs]?w[gs]():d[gs]?d[gs]():d.selection.createrange().text)).replace(/(^\s+|\s+$)/g,'');m='http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su='+encodeuricomponent(document.title)+'&body='+encodeuricomponent(document.location+'\n\n'+s);w=window.open(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');settimeout(function(){w.focus();},%20250);})();
the code comes page an improved "gmail this" bookmarket
i need send link myself
simply add email address after "&to=" in bookmarklet:
javascript:(function(){var%20w=window,d=document,gs='getselection';var%20s=(''+(w[gs]?w[gs]():d[gs]?d[gs]():d.selection.createrange().text)).replace(/(^\s+|\s+$)/g,'');m='http://mail.google.com/mail/?view=cm&fs=1&tf=1&to=you@email.com&su='+encodeuricomponent(document.title)+'&body='+encodeuricomponent(document.location+'\n\n'+s);w=window.open(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');settimeout(function(){w.focus();},%20250);})();
Comments
Post a Comment