3
1
Back

{ if ($doc === NULL) { foreach ($article['debug'] as $msg) { $article['content'] .= "

" . $entry->textContent . "

"; } } // Scenes From A Multiverse Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Scenes From A Multiverse Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $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, '(//div[@id="comic"]//img)', $article); } // Poly In Pictures elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // CTRL+ALT+DEL.

New Pull Request