3
1
Back

Quick and 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)) { if ($img->getAttribute('title')) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } } // Dead Philosophers elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text.

New Pull Request