3
1
Back

(strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (two_holes_type == "opposite") { } module pot_0547() { // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); Added The Trenches; yet more code style tweaking elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Doghouse Diaries, which has broken alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Poly In Pictures elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link.

New Pull Request