3
1
Back

($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
$orig_content
"; } // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "

Bonus comic:
" . $aftercomic . "

"; } } // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $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, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Chainsawsuit // Chainsawsuit elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") .

New Pull Request