3
1
Back

Created with Inkscape (http://www.inkscape.org/) --> get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // SBMC elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } Some comics supported elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Three Panel Soul elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= $aftercomic; } } // SBMC elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // Questionable Content (cleanup) $article['content'] .= "

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

"; // Wondermark (alt tag already present elseif (strpos($article['content'], 'invisiblebread.com/2.

New Pull Request