3
1
Back

264 lines define('ADD_IDS', True); class _comics extends Plugin { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users /* absolute URL is ready! */ 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="main"]//img)', $article); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Joy of Tech elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // draw a "vertical" wall } // Wondermark (alt tag already present foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { //also get the blog //also get the blog // XKCD (alt tags we don't lose it 734cf9b18c.

New Pull Request