3
1
Back

At OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Three Panel Soul elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Gunnerkrigg Court // Gunnerkrigg Court elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Invisible Bread (make the bread visible) $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // Berkeley Mews elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ // Least I Could.

New Pull Request