3
1
Back

Code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $img_tag . $article['content']; } drugs & wires, pilotside Various updates, additions elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; if (ADD_IDS) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img; } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXpath($doc); $bread .

New Pull Request