(function() {
  var _createTweet = TWTR.Widget.prototype._createTweet;
  var _setUrl = TWTR.Widget.prototype._setUrl;
  TWTR.Widget.prototype._createTweet = function(o) {
    if (o.user !== 'noonat' && o.user !== 'drflail') {
      o.tweet = (
        'RT @<a target="_blank" class="twtr-atreply" href="http://twitter.com/' +
        o.user + '">' + o.user + '</a>: ' + o.tweet);
    }
    _createTweet.call(this, o);
    return this;
  };
  TWTR.Widget.prototype._setUrl = function() {
    var rpp = this.rpp;
    this.rpp = 20;
    _setUrl.call(this);
    this.rpp = rpp;
    return this;
  };
  new TWTR.Widget({
    version: 2,
    id: 'twitter',
    type: 'list',
    rpp: 5,
    interval: 6000,
    width: 210,
    height: 320,
    theme: {
      shell: {
        background: '#333333',
        color: '#ffffff'
      },
      tweets: {
        background: '#000000',
        color: '#ffffff',
        links: '#a183bf'
      }
    },
    features: {
      scrollbar: false,
      loop: true,
      live: false,
      hashtags: true,
      timestamp: true,
      avatars: true,
      behavior: 'default',
      filters: {
        negatives: /^@\w{1,20}\s+/
      }
    }
  }).render().setList('noonat', 'phuce').start();
})();

