3
1
Back

// $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Eat That Toast bog-standard example // Breaking Cat News $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->textContent . "

"; } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $doc = NULL) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); } // Dinosaur Comics Cleanup // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", .

New Pull Request