3
1
Back

$this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } foreach($imgs as $img){ // Questionable Content (cleanup) $article['content'] .= "
$orig_content
"; // Awkward Zombie elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $doc = new DOMXPath($doc); return $xpath; } function mangle_article($article) { // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Three Panel Soul elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Robot Hugs elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "
Alt: " . $article['id']; } return $article; } function hook_render_article($article) { } module shaft_hole() { { // $host->add_hook($host::HOOK_ARTICLE_FILTER.

New Pull Request