3
1
Back

Img Pain Train (to get alt tag) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // not a comic, just a borked RSS feed elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } function hook_render_article($article) { try { return $article; } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE ) .

New Pull Request