3
1
Back

README.md 2015-02-23 04:37:33 -08:00 It's really just a 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/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Scenes From A Multiverse Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { } module label(string, size=4, halign="center", font=default_label_font) { color([1,0,0]) linear_extrude(thickness+1) text(string, size, halign=halign, font=font); // draw a "vertical" wall to mount the circuit board to, dead center pcb_holder(h=10, l=top_row-rail_clearance*2, th=1.15, wall_thickness=1); if (anchor_hole=="left" || anchor_hole=="both") { if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { From b4b4641770af206fdb9aac874d2d59b9ecc400d1 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Upload files to '3D Printing/Panels/AD&D 1e spell names in Filmoscope Quentin/POLYMORPH.png Normal file Unescape Fireball/Fireball_panel.kicad_dru Normal file View File 3D Printing/Panels/AD&D 1e spell names in Filmoscope Quentin/Panels/COLOR SPRAY.png Normal file View File 3D Printing/Pot_Knobs/Pot Knob in Two Parts_sep.stl ttrss-plugin- _comics/init.php 342 lines if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); // Doghouse Diaries, which has broken alt tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $img; } } // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible if (preg_match("@.*(get_img_tags($xpath, "//div[@id='content']/img", $article); } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme.

New Pull Request