Labels Milestones
BackA quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*( " . $entry->textContent . "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "
" . $msg . ""; } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { //No matches if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // Jesus & Mo elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Least I Could Do (wtf image size? If(preg_match("@.*(