close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
2009-11-25
Web Service : Bookmarklet
- 解析GmailThis! Bookmarklet
- 從單行的 Bookmarklet 語法可以注意到一些小細節,像是空白必須用"%20"取代、
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=cm&fs=1&tf=1&to=&su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('\n')%20+%20escape(location.href)%20+%20'&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);
Download in other formats: