3
1
Back

About $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Dinosaur Comics Cleanup $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'] = $img_tag . $article['content']; } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Two Lumps elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify to handle both title.

New Pull Request