3
1
Back

Bytes .../Panels/HOLD PORTAL.png | Bin 0 -> 33312 bytes Panels/FireballSpellVertSmaller.png | Bin 56316 -> 69096 bytes } elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== 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); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // slightly complicated; the link is to tumblr, but there's a url in the case of each sliding pot; these are some setup variables... You probably won't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } // Three Panel Soul * Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Chainsawsuit // Poorly Drawn Lines elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } 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! */ return $scheme.'://'.$abs; } function hook_render_article($article) { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath.

New Pull Request