Deliciousにポストするブックマークレットの合体版
さっき作ったブックマークレットの合体版
- iPhone版Googleリーダーで、今見ているエントリーをDeliciousにポストする
- Instapaper mobilizerで見ていたページをDeliciousにポストする
- それ以外であれば、今見ているページをそのままDeliciousにポストする
javascript: (function(){ var url; var title; if (/http:\/\/www\.google\.co\.jp\/reader\/i\//.test(location.href)) { var expanded = document.getElementsByClassName("expanded"); var a = expanded[0].getElementsByClassName("item-title"); var link = a[0].getAttribute("href"); url = encodeURIComponent(link); title = encodeURIComponent(a[0].innerHTML); } else if (/http:\/\/www\.instapaper\.com\/m/.test(location.href)) { url = location.href.substring(30); title = encodeURIComponent(document.title); } else { url = encodeURIComponent(location.href); title = encodeURIComponent(document.title); } window.open("http://m.delicious.com/save?url=" + url + "&title=" + title + "&jump=doclose"); })();