Togetter で RT/QT の文字色薄くするやつ( by @mitukiii )

  • /*
     * @title Togetter で RT/QT の文字色薄くするやつ( by @mitukiii )
     * @description my Togetter で RT/QT の文字色薄くするやつ ( by @mitukiii )
     * @include http://togetter.com/*
     * @license MIT License
     * @require 
     */
    
    var script = document.createElement('script');
    script.textContent = '(' + (function () {
      $('.tweet').each(function() {
        var tweet = $(this), html = tweet.html();
        html = html.replace(/((?:RT|QT):? <a[^>]+>@[\w]+<\/a>.*)$/, '<span class="c13">$1</span>');
        tweet.html(html);
      });
    }).toString() + ')();';
    document.body.appendChild(script);
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/02/28 13:31:38 - 2012-02-28
  2. 2012/02/28 13:27:17 - 2012-02-28