3
1
Back

= $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Dilbert elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); // Girls with Slingshots elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Robot Hugs elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMXPath($doc); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ Assorted updates elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); // Joy of Tech // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Poorly Drawn Lines // Berkeley Mews.

New Pull Request