3
1
Back

"ID: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Girls with Slingshots elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Awkward Zombie $article['content'] .= "Bonus comic:" . $aftercomic . ""; // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "
" . $msg . ""; } if ($rel[0]=='#' || $rel[0]=='?') { return 2; } } if ($rel[0]=='#' || $rel[0]=='?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function api_version() { return 2; } /* absolute URL is ready! */ return $scheme.'://'.$abs; return $scheme . '://' . $abs; } From 2cddc4d62d38c9e1b69839f92a19e7915eecbceb Mon Sep 17 00:00:00 2001 Subject: [PATCH] Added BCN, Something Positive elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

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

"; // Wondermark (alt tag elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Softer World (alt.

New Pull Request