3
1
Back

(preg_match("@.*(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $img; } } // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== 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); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //no-op else { // Alice Grove (get bigger image) // Alice Grove (get bigger image) // Alice Grove bigger img Pain Train (to get alt tag elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Dead Philosophers // Dead Philosophers Added BCN, Something Positive elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Two Lumps // Breaking Cat News $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just use.

New Pull Request