GmailThis! 북마크렛
del.icio.us 이후로 브라우저에서 사용하면 유용한 북마크렛(bookmarklet)이 하나둘 생겨나고 있다. 특히 Gmail을 사용하는 사람들에게 유용한 북마크렛로 GmailThis!라고 하는 북마크렛이 있다. 구글에서 공식적으로 제공하는 것은 아니지만, 누군가가 만들어서 인터넷에 공개해 놓은 북마크렛이 있다. [여기]. 그런데 이게 왠지 한글이 들어 있는 문서를 스크랩하여 GmailThis!를 할 경우에는 글자가 깨졌다. 적어도 내 브라우저에서는 그랬다. 그래서 북마크렛을 조금 고쳐서 한글도 사용할 수 있게 만들어 보았다.

GmailThis! <- 이 링크를 드래그하여 북마크 창에 끌어다 놓으면 된다. (Firefox ONLY!!)

이 북마크렛의 소스코드는 다음과 같다.
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=cm&tf=0&to=&su=' + encodeURI(document.title) +'&body='+ encodeURIComponent(Q) + escape('\n') + encodeURIComponent(location.href),'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);
by thinkr | 2007/03/05 17:39 | 트랙백
< 이전페이지 다음페이지 >