red.js
$(function(){ $("#timeline").bind("timeline-changed",null,markAsRed); markAsRed() }); var markAsRed=function(){ $("#timeline > li").each(function(){ var A=$(this); var B=A.find(".entry-content, .msgtxt").text(); if(/(((^|\s)#red)|\b(laceupsavelives|aids|hiv|joinred|africa)\b)/i.test(B)&&!A.hasClass("red-tweet")){ A.addClass("red-tweet") } }) };
.red-tweet .entry-content{ color:#670519!important; } .red-tweet .entry-content a, .red-tweet strong a{ color:#AB0626!important; }