3
1
Back

$this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Three Panel Soul * Scenes From A Multiverse (to get alt tag) // Pain Train (to get alt tag) elseif (strpos($article['link'], 'campcomic.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'], 'leasticoulddo.com/comic') !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function api_version() { return 2; } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*()@", $article['content'], $matches)) { // The Trenches elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } Clean up code formatting; added a few more 'simple' Unseen Servant functions tracks the ratsnest and compactifies the power subsystem.

New Pull Request