Labels Milestones
BackTo melt an m3 nut into module pot_0547() { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = 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']; } // Wondermark (alt tag already present) // Wondermark (alt tag elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // And get blog elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; } } $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ foreach ($entries as $entry){ $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "
"; // Wondermark (alt tag already present elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $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"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } Added The Trenches; yet more code style tweaking // The Trenches elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE. New Pull Request