3
1
Back

True); define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' ' ); } function mangle_article($article) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] .= "
ID: " . $article['id']; } return $article; } function hook_render_article($article) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { //also append the blarg post because that's small, interesting, $entries .

New Pull Request