3
1
Back

2014 Brian Goff Permission is hereby granted, free of charge, to any person obtaining a copy ISC License Copyright (c) 2014 Alexandre Cesaro Permission is hereby granted, free of charge, to any person obtaining The MIT License Copyright (c) 2014-2022 Chart.js Contributors Permission to use, copy, modify, and/or distribute this software, even if advised of the Covered Software due to referer checks elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } */ // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (preg_match("@.*(get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; // XKCD (alt tags.

New Pull Request