3
1
Back

Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } elseif (strpos($title_text, $alt_text) !== false){ } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // CTRL+ALT+DEL // CTRL+ALT+DEL elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // Cyanide & Happiness elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Joy of Tech elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Eat That Toast elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && // SatW // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { function hook_render_article($article) { try { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_content($link) { /** * Use this if you want a shaft, set this to the shaft, you can create a D-shaped hole, set this to the name.

New Pull Request