3
1
Back

(strpos($article['link'], 'alicegrove.com') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Drugs and Wires elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Alice Grove bigger img elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's.

New Pull Request