3
1
Back

Initial $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Alice Grove (get bigger image) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Timothy Winchester (People I Know) $article['content'] .= "
$orig_content
"; } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } Various updates, additions Various updates, additions /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } /* dirty absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL */ $abs = "$host$path/$rel"; function rel2abs($rel, $base) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base.$rel; if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', .

New Pull Request