3
1
Back

Code already written for about a dozen webcomics. Examples: Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } Added BCN, Something Positive } if (ADD_IDS) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Dead Philosophers // Dead Philosophers Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast bog-standard example elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Gunnerkrigg and cleanup of alt-tag-only sites .

New Pull Request