create folder extract in catalog
add 2 file: product.php ang category.php in this folder
add 2 line in root/index.php:
$registry->set('extract_node', new simple_dom_html_node());
$registry->set('extract_dom', new simple_dom_html());

define function extract in loader.php