3
1
Back

From dd8fda85b17279e6d8dbcb525c226736e6399cf9 Mon Sep 17 00:00:00 2001 Panels/FIREBALL VCO.png } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $img; } } // Three Panel Soul elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { // Breaking Cat News // Something Positive elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); } // Poly In Pictures } // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = new DOMDocument(); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { //also append the blarg post because that's small, interesting, } //and sometimes necessary for old fogeys like me to get what game it's about } // 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[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] .= "

" . $entry->textContent . "

"; } } // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); // Berkeley Mews elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $xpath.

New Pull Request