3
1
Back

Add panels Add panels Add panels Add panels From d62e7c6861a31de12fc24143b97961d87c355a55 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // The Oatmeal $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $article['content'] .= "
$orig_content
"; // Awkward Zombie $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } // Dead Philosophers elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } } // Something Positive elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Two Lumps elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Pain Train alt tag, Alice Grove bigger img elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // only keep everything starting at the thickest point, less at the first elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates.

New Pull Request