3
1
Back

Mews // $img_tag = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Cyanide & Happiness elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Dead Philosophers // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $doc = NULL) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] .= "
" . $msg . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) function about() { return $base . $rel; for ($n = 1; $n > 0; $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1.

New Pull Request