3
1
Back

// Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { //also get the blog $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // Scenes From A Multiverse Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); function mangle_article($article) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); Added.

New Pull Request