3
1
Back

_comics/init.php 356 lines class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', ' '); } function mangle_article($article) { // Breaking Cat News elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $doc = new DOMDocument(); // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible) $article['content'] = preg_replace("@@", '', $article['content']); } // Poly In Pictures elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Dead Philosophers Added BCN, Something Positive if (!$alt_text){ Added BCN, Something Positive $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Camp Weedonwantcha elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Poly In Pictures elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif.

New Pull Request