3
1
Back

Want at least one of their own. Wondermark fix; added Oatmeal initial Wondermark fix; added Oatmeal initial $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Alice Grove (get bigger image elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // only keep everything starting at the first if (preg_match("@.*(get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Berkeley Mews elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { if ($rel[0]=='#' || $rel[0]=='?') { return array( 0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(textContent . "

"; } } // Jesus & Mo elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "

" . $entry->textContent . "

"; } } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = trim($entry->getAttribute('title')); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debug']) .

New Pull Request