3
1
Back

Exclusion and * Call the module ' help(); ' for a few comics; standardized appending alt/title text under images (extra useful for non-browser users if (preg_match("@.*(getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] .= $aftercomic; $article['content'] .= "
Alt: " . $article['id']; } function mangle_article($article) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } /* absolute URL is ready!

New Pull Request