bookmarklet

ちょっと作りたいものがあったので。

javascript:(
    function(){
        var url='http://example.com/';
        function o(title, src_url){
            var m=window.open(url+'?title='+title+'&src_url='+src_url, 'a', 'width=600, height=400');
        }
        o(encodeURIComponent(document.title),encodeURIComponent(location.href));
    }
)();";

インデント、改行を削除してブックマークする。
閲覧中のページでブックマークレットを操作すると、

http://example.com/?title=ページタイトル&src_url=閲覧ページURL

のwindowが立ち上がる。で、サーバ側でquery stringをもらいごにょごにょする。