3
1
Back

Users // $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Robot Hugs elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } Some comics supported Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE && // Cyanide & Happiness elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] .= "
$orig_content
"; } // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { } if ($rel[0] == '/') { $path = ''; $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $article['link']); if ($alt_text && $alt_text != $article['title']){ $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debug']) { foreach ($imgs as $img) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
$orig_content
"; .

New Pull Request