3
1
Back

$this); } function mangle_article($article) { // Eat That Toast bog-standard example // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // Three Panel Soul elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { From ef87dc7d41f5e6b2301711b754023b93f16ed69f Mon Sep 17 00:00:00 2001 Subject: [PATCH 02/13] More notes C10, C14 too small for a.

New Pull Request