3
1
Back

$img); } function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // not a comic, just a borked RSS feed elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry){ $article['content'] .= "
" . $msg . ""; } } // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Scenes From A Multiverse (to get alt tags in feedburner (if there are quotes) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath.

New Pull Request