3
1
Back

"//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Questionable Content (cleanup elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } function hook_render_article($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text && $alt_text.

New Pull Request