3
1
Back

-0.55118022,2.5590618 h -0.07874" d="M -4.4488226,2.4606366 V 2.6574871" d="m -4.3503976,2.5590618 h -0.19685" d="M -8.8582714,2.4606366 V 2.6574871" d="m -5.2952793,2.5590618 h -0.19685" d="m -3.5433111,12.893708 v 0.19685" d="m -6.7913424,12.992133 h -0.19685" d="M -6.8897672,9.54725 V 9.744101" d="m -6.7913422,9.645676 h -0.19685" d="M -3.5433071,7.381896 V 7.5787465" d="m -3.4448821,7.4803212 h -0.19685" d="M -6.8897672,9.54725 V 9.744101" d="m -3.4448859,9.645676 h -0.19685" d="m 3.4251927,4.4291344 v 0.196852" d="m 3.5236177,4.5275604 h -0.19685" d="m 3.4251925,7.1850396 v 0.196852" d="m -3.4448861,11.41733 h -0.19685" d="m 2.9527508,8.8202247 v 0.07874" d="m -2.5196841,2.5590618 h -0.07874" d="m -0.59055042,2.521019 v 0.07874" d="M 2.992121,8.8569411 H 2.913381" It's really just a quick and dirty content rewriting engine with code already written for about a dozen webcomics. Examples: Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Girls with Slingshots // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { function rel2abs($rel, $base) { function hook_render_article($article) { return $this->mangle_article($article); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Wondermark (alt tag already present) elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); } // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article['link'], 'campcomic.com/comic.

New Pull Request