3
1
Back

(strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Drugs and Wires elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Penny Arcade elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = new DOMDocument(); // replace the
(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } function mangle_article($article) { if ($img->getAttribute('title')) { // 90° base rotation angle to align the indentations with.

New Pull Request