News for hackers. Stuff that matters.
Re:“Implement text editor DOM updates manually instead of vi... by dcherman on Friday February 27, 2015 @02:58PM (#9120951)
Instead of using a timer or a one time selector, just add a new CSS rule via a style tag

(function() { var style = document.createElement( "style" );

   style.innerHTML = "[data-reactid] { background: rgba(255,0,0,0.1); }";
   document.head.appendChild( style );
}());

There are no comments on this comment yet.