3
1
Back

Do (wtf image size? Elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Jesus & Mo elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } /* dirty absolute URL */ $abs = "$host$path/$rel"; function rel2abs($rel, $base) { function hook_render_article($article) { return 2; } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); .

New Pull Request