title: Redefine standard css colors
body: <p>Is there a javascript/jQuery function that would Redefine the standard css color names? (Something you could simply copy/past into your projects.)</p>
  
  <p>example:</p>
  
  <pre><code>&lt;div id="example"&gt;&lt;/div&gt;
  
  &lt;style&gt;
  
  #example { background: red; }
  
  &lt;/style&gt;
  
  &lt;script&gt;
  
  if(true) {
      function redefineColor () {
      var backgroundColor = $("*").css("background");   //select all elements
  
      if( backgroundColor == "#FF0000" ) {              //red color.
        $(this).css("background","#DC143C");              //other shade of red.
      } else { return false}
      redefineColor();
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>greetings</p>