3
1
Back

'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; } } Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Breaking Cat News // Something Positive if (!$alt_text){ Added BCN, Something Positive elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { //noop $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Scenes From A Multiverse Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return 2; } } // Two Lumps elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $xpath.

New Pull Request