3
1
Back

Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Girls with Slingshots elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Dead Philosophers elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Dead Philosophers Dead Philosophers elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users /* absolute URL is ready! */ } function hook_render_article($article) { $article['content'] .

New Pull Request