wiki:jazz/09-11-25

Version 1 (modified by jazz, 15 years ago) (diff)

--

2009-11-25

  • 解析GmailThis! Bookmarklet
    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);