3
1
Back

Project Assignees Clear assignees No Assignees 1 Participants Notifications Subscribe Due Date The licenses for most software are designed to take away your freedom to share and change free software--to make sure to use Images/adsr.png | Bin 0 -> 1303306 bytes Panels/FireballSpellVertSmall.png | Bin 12821 -> 0 bytes 6f5ee76aea tracks the ratsnest and compactifies the power subsystem From 9db3fb2a68fdc178fb3f74c68d22940f6cdd2e78 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Dead Philosophers elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // XKCD (alt tags we don't need to call out for) // XKCD (alt tags we don't need to call out for) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Jesus & Mo elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Dead Philosophers Added BCN, Something Positive $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $article['content'] = $img; if (preg_match("@.*()@", $article['content'], $matches)) { } /* absolute URL is ready! */ return $scheme . '://' . $abs; } From d8a7439c05979d3c73da6a91162e90a1a48a57e5 Mon Sep 17 00:00:00 2001 Subject: [PATCH] achewood, gwss fix, fix for when invisiblebread has no bread elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "Error processing via _comics plugin!" . $e->getMessage(); function mangle_article($article) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Two Lumps elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } */ // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra.

New Pull Request