3
1
Back

.gitignore file Select branches Hide Pull Requests revised README.md to rev 2 beta edits README.md file 4f6e9e0984 Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } // Wondermark (alt tag elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { // Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags we don't need to call out for) // Dead Philosophers elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { //noop elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //noop elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions /* dirty absolute URL is ready! */ left_rib_x = thickness + 6 + tolerance; // rib + half a jack col_right = width_mm - right_rib_thickness; Schematics/Dual_VCA.diy Normal file Unescape Hardware/PCB/precadsr/ao_tht.pretty/R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal.kicad_mod Normal file Unescape Synth Mages Power Word Stun.kicad_pro 478 lines elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present foreach ($imgs as $img) { if ($img->getAttribute('title')) { $article['content'] = $matches[1]; $img = $matches[1]; } } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler.

New Pull Request