3
1
Back

XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: $alt_text
"; } } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $doc = new DOMDocument(); // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // CTRL+ALT+DEL Sillies // Two Lumps elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // PhD Unknown elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE.

New Pull Request