3
1
Back

Continue? // Eat That Toast bog-standard example // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Something Positive elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if(preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "
$orig_content
"; } // Eat That Toast elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // slightly complicated; the link is to tumblr, but there's a url in the body text, captions, etc. For.

New Pull Request