3
1
Back

'somethingpositive.net') !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { //noop elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; } return $article; } function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that.

New Pull Request