3
1
Back

= $doc->saveHTML(); function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function hook_render_article($article) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Added The Trenches; yet more code style tweaking // The Oatmeal elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Timothy Winchester (People I Know foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Added BCN, Something Positive elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Scenes From A Multiverse Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { if.

New Pull Request