このトゥギャりを引用

    @@ -7,7 +7,15 @@ */ -var body = '>' + location.href + ':title:bookmark>\n' + $('.list_body > h5 > a').map(function() { return 'twitter:' + this.toString().replace(/^http:\/\/twitter.com\/[^\/]*\/status\//,'') + ':detail' }).toArray().join('\n') + '\n<<\n'; +var body = '>' + location.href + ':title:bookmark>\n' + $('.list_body > h5 > 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);
  • /*
     * @title このトゥギャりを引用
     * @description Togetter (トゥギャッター)の内容をはてなで引用します。トゥギャッターのまとめページで、このブックマークレットを実行してください。
     * @include http://togetter.com/li/*
     * @license MIT License
     * @require 
     */
    
    
    var body = '>' + location.href + ':title:bookmark>\n' + $('.list_body > h5 > 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. 2010/05/27 18:35:02 - 2010-05-27
  2. 2010/05/27 18:29:00 - 2010-05-27
  3. 2010/05/27 17:29:40 - 2010-05-27
  4. 2010/05/27 17:28:35 - 2010-05-27
  5. 2010/05/27 17:18:31 - 2010-05-27
  6. 2010/05/27 17:18:01 - 2010-05-27
  7. 2010/05/27 17:16:52 - 2010-05-27