3
1
Back

2.5787307,4.5275596 h -0.19685" d="m -6.8897674,11.318904 v 0.196852" d="m 3.5236219,3.1496062 h -0.19685" d="M -3.543312,5.0196934 V 5.2165449" d="m -3.444887,5.1181194 h -0.19685" d="m 2.9527508,8.8202247 v 0.07874" d="M 2.992121,8.8582675 H 2.913381" It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // XKCD (alt tags we don't need to call out for if(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Two Lumps // Two Lumps // Two Lumps // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $img; } Fix for when invisible bread has no bread $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } } return $result_html; } function about() { return $this->mangle_article($article); } function hook_render_article($article) { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // The Trenches // The Oatmeal elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) .

New Pull Request