3
1
Back

'Yet more stupid-simple comic-fetching.', ' '); } function hook_render_article($article) { return $article; } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // not a comic, just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // SBMC elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $article['content'] .= "
" . $msg . ""; } if (ADD_IDS) { $article['content'] .= "

" . $entry->textContent . "

"; } } //noop elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Wondermark (alt tag already present) // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Manic Pixie Nightmare Girls 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, 'ENG_')]", $article); } // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'breakingcatnews.com/comic/') .

New Pull Request