3
1
Back

Extends Plugin { function about() { function api_version() { return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny Arcade elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && Various updates, additions Fix for when invisiblebread has no bread achewood, gwss fix, fix for when invisiblebread has no bread $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } achewood, gwss fix, fix for when invisiblebread has no bread $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article.

New Pull Request