3
1
Back

10; // [1:1:84] /* [Holes] */ // $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 init($host) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } Some comics supported elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $article['content'] .= $aftercomic; } } // Two Lumps elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $article['content'] = $img; } } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'www.robot-hugs.com/') .

New Pull Request