0

我正在使用“Gmail 这个!” 使用迷你撰写窗口通过 Gmail 发送 URL 和选定文本的小书签。目前我仍然需要输入收件人,然后点击发送。

我想知道是否可以在 Gmail 可以使用的代码中传递收件人,所以我只需要单击发送按钮

这是我正在使用的代码:

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);})();

代码来自这个页面一个改进的“Gmail This”书市

我只需要将链接发送给自己

4

1 回答 1

0

只需在书签中的“&to=”之后添加您的电子邮件地址:

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);})();
于 2013-05-22T18:53:36.990 回答