3
1
Back

A quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "
Alt: " . $article['id']; } return $article; } if(ADD_IDS){ $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags textified. Elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Added BCN, Something Positive elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Something Positive elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "
ID: " . $article['id']; $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { if ($img->getAttribute('title')) { $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags in feedburner (if there are quotes elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { //no-op From 269f3bf9f9109b69cf4264b79cb1ed6f6a114782.

New Pull Request