3
1
Back

$doc->saveXML(); } // Least I Could Do (wtf image size?) // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this } //No matches if ($img->getAttribute('title')) { $article['content'] .= "

" . $entry->textContent . "

"; } } } // Dilbert // Dilbert elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // And get blog //also get the blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $article['id']; } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function about() { return 2; } } $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { // Poly In Pictures // Poly In Pictures } // Breaking Cat News elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // Something Positive elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // color([1,0,0]) // linear_extrude(thickness+1) // text(string, size, halign=halign); } .. Futura Heavy BT.ttf ttrss-plugin- _comics/init.php 424 lines $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. // $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "
" . $msg . ""; } } // SBMC elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Drugs and Wires drugs & wires, pilotside drugs & wires, pilotside elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] .

New Pull Request