3
1
Back

"//div[@id='comic']/img", $article); } // SatW elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } */ // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Eat That Toast bog-standard example elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && // Cyanide & Happiness elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $img_tag . $article['content']; } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that.

New Pull Request