3
1
Back

UI: main arrasta/Samba Reggae rhythms.txt Executable file View File 398c2b234c Checkpoint after fixes but before shrinking boards 007cc05932dfa23f85127799f5505afc7b25772e Stuff all teh scad files in Still trying to fit in glide controls From a5c5ff12ce18fecaaf346f973863d12bf361ac82 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } } // Cyanide & Happiness elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Dinosaur Comics Cleanup $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; } // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } // SBMC elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Timothy Winchester (People I Know foreach ($imgs as $img) { if ($img->getAttribute('title')) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // SBMC // SBMC elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Pain Train (to get alt tag) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "ID: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "
Alt.

New Pull Request