Labels Milestones
BackBoard ("Board B") must sit a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Added The Trenches; yet more code style tweaking Added The Trenches; yet more code style tweaking // The Trenches // The Oatmeal $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $article['id']; } return $article; } function hook_render_article($article) { try { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
" . $entry->textContent . "
"; } } // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); Assorted updates elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicFrame"])', $article); elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE && // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // And get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] .= "ID: " . $article['id']; } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL */ $abs = "$host$path/$rel"; function api_version() { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' ' ); } function hook_render_article_cdm($article) { return $article; } Some comics supported elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // CTRL+ALT+DEL. New Pull Request