このトゥギャりを引用

  • /*
     * @title このトゥギャりを引用
     * @description Togetter (トゥギャッター)の内容をはてなで引用します。トゥギャッターのまとめページで、このブックマークレットを実行してください。origin: http://let.hatelabo.jp/amachang/let/gYC-xpuNrtn6bw
     * @include http://togetter.com/li/*
     * @license MIT License
     * @require 
     */
    
    
    var body = '>' + location.href + ':title:bookmark>\n' + $('div.tweet_box a').map(function() {
        var url = this.toString();
        if (url.match(/^http:\/\/twitter\.com/)) {
            return 'twitter:' + url.replace(/^http:\/\/twitter.com\/[^\/]*\/status\//,'') + ':detail';
        }
        else {
            return '';
        }
    }).toArray().join('\n').replace(/\n+/g, '\n') + '\n<<\n';
    
    location.href = 'http://d.hatena.ne.jp/edit?disctb=1&cite=' + encodeURIComponent(location.href) + '&appendbody=' + encodeURIComponent(body);
    
    void(0);
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2011/12/23 01:31:31 - 2011-12-23