3
1
Back

Dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMXPath($doc); return $xpath; } function hook_render_article_cdm($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } /* absolute URL is ready! */ Assorted updates Assorted updates elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $article['content'] = $img_tag . $article['content.

New Pull Request