3
1
Back

Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Eat That Toast bog-standard example if (strpos($article['link'], 'eatthattoast.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); } // Gunnerkrigg Court elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // SBMC elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // slider pot slit // make a 2d version v_wall(h=4, l=height-rail_clearance*2, th=right_rib_thickness); // top right [left_edge + height * rotate_vector_cos; [left_edge, rotate_vector_cos * rail_depth], // top left [left_edge, 0], // drop to axis [left_edge, -extra_depth], // bottom horizontal rib // h_wall(h=4, l=right_rib_x); } module label(string, size=4, halign="center", font=default_label_font) { } // Chainsawsuit elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users 1e6cc98f41 Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "
$orig_content
"; } // Scenes From A Multiverse (to get alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debug']) { } module audio_jack_3_5mm() .

New Pull Request