3
1
Back

Smaller, but not some kind of referer check which prevents fetch_file_contents() from retrieving the image. // $article['content'] = $img_tag . $article['content']; } Added The Trenches; yet more code style tweaking Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] .= "$orig_content"; // Awkward Zombie elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Timothy Winchester (People I Know foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } Assorted updates Assorted updates elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .

New Pull Request