3
1
Back

//doesn't get simpler than this foreach ($imgs as $img) { if ($doc === NULL) { foreach ($article['debug'] as $msg) { $article['content'] .= "

" . $entry->textContent . "

"; } } } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*(get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = new DOMXpath($doc); $vgcats_url_node = $url_xpath->query("//a[contains(@href, 'strip_id')]")->item(0); } $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Various updates, additions // PhD Unknown // Robot Hugs elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } Some comics supported Latest.

New Pull Request