3
1
Back

$article['link']); if ($alt_text && !$title_text){ } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } // Dilbert // Dilbert elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Added The Trenches; yet more code style tweaking Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'campcomic.com/comic/') !== 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, "//div[@id='comic']//img", $article); } // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE.

New Pull Request