3
1
Back

DOMXpath($doc); elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Cyanide & Happiness elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Dilbert elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this .

New Pull Request