3
1
Back

Claims" of a flying fireball.png | Bin 10724 -> 0 bytes elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Dead Philosophers Dead Philosophers elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } //noop } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to the previous module with inputs made for an e-drum kit. Elseif (strpos($article["content"], "//www.vgcats.com/comics/?strip_id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXpath($doc); elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Berkeley Mews // 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[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for voltage dividers feeding chip inputs don't do manual connection to GND if you need a bigger flat.

New Pull Request