3
1
Back

Lines 720296ca7c Pain Train (to get alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // Jesus & Mo elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $article['content'] .= "
$orig_content
"; // Awkward Zombie $orig_content = strip_tags($article['content']); // Awkward Zombie $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); $article['content'] = $img; } } // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // SBMC elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath .

New Pull Request