3
1
Back

// Depth of the Stick elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { //noop $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Joy of Tech elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // CTRL+ALT+DEL Sillies // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.'://'.$abs; } function about() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article_cdm($article) { function api_version() { return $base . $rel; } if ($rel[0]=='#' || $rel[0]=='?') { return $this->mangle_article($article.

New Pull Request