3
1
Back

Content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech // Joy of Tech $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Three Panel Soul elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { 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="comicbody"]//img)', $article) . $article['content']; } // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $img; } } 3D Printing/Cases/Eurorack Modular Case/DSC03759.jpg Executable file View File 3D Printing/Panels/AD&D 1e spell names in Filmoscope Quentin/Panels' 5209c5fd76 Upload files to '3D Printing/AD&D 1e spell names in Filmoscope Quentin/Panels/PRISMATIC SPHERE.png with a diode to U2-3 Glide In - Pause CV In - U1-13 (can get at from top when assembled - Stop Switch - 10 - center_adjust; center_col = width_mm/2; row_1 = v_margin+12; slider_bottom = v_margin+8; module label(string, size=4, halign="center") { // Three Panel Soul elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $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("@.*(query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } Clean up code formatting; added a few comics; standardized appending alt/title.

New Pull Request