3
1
Back

Correction on the first if(preg_match("@.*(get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'uploads') and contains(@src, 'comics')]", $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Assorted updates elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] = $img_tag . $article['content']; } // CTRL+ALT+DEL elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Joy of Tech elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Wondermark (alt tag already present) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in the output to +10V? Clock POT is too small for a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra.

New Pull Request