Remove Add to compare

mkdir -p app/code/local/BlueAcorn/Catalog/Helper/Product/
cat <<EOF> app/code/local/BlueAcorn/Catalog/Helper/Product/Compare.php
<?php
class BlueAcorn_Catalog_Helper_Product_Compare extends Mage_Catalog_Helper_Product_Compare {
   public function getAddUrl($product) {
      return false;
   }
}
?>
EOF
 
 
mkdir app/code/local/BlueAcorn/Catalog/etc/          
cat <<EOF> app/code/local/BlueAcorn/Catalog/etc/config.xml
<?xml version="1.0"?>
<config>
   <modules>
      <BlueAcorn_Catalog>
         <version>1.0</version>
      </BlueAcorn_Catalog>
   </modules>
   <global>
      <helpers>
         <catalog>
            <rewrite>
               <product_compare>BlueAcorn_Catalog_Helper_Product_Compare</product_compare>
            </rewrite>
         </catalog>
      </helpers>
   </global>
</config>
EOF
 
 
cat <<EOF> app/etc/modules/BlueAcorn_Catalog.xml
<?xml version="1.0"?>
<config>
   <modules>
      <BlueAcorn_Catalog>
         <active>true</active>
         <codePool>local</codePool>
      </BlueAcorn_Catalog>
   </modules>
</config>
EOF
 
 
# Links
http://www.magentocommerce.com/wiki/how-to/how_to_remove_add_to_compare