3
1
Back

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'], 'cad-comic.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // SatW // SatW // SatW elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { // draw panel, subtract holes // v_wall(h=4, l=height-rail_clearance*2-thickness); // top horizontal rib // h_wall(h=1.6, l=right_rib_x); // middle horizontal rib // h_wall(h=4, l=right_rib_x); // one more vertical to mount the circuit board sideways on d923559173 Go to file Latest commits for branch pcb_finalization re-re-remove the mysterious extra trace main Add scad.