3
1
Back

} if(ADD_IDS){ $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@class='entry']"); // VG Cats $vgcats_url = $vgcats_url_node->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Assorted updates elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $img_tag . $article['content']; // Cyanide & Happiness elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } // } // Two Lumps elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] .= "
$orig_content
"; } // Two Lumps // Two Lumps // Two Lumps elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { //no-op else { return $this->mangle_article($article); } function mangle_article($article) { // Poorly Drawn Lines elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { .

New Pull Request