3
1
Back

2.4803057,4.4291344 V 4.6259849" d="m 2.5787307,4.5275596 h -0.19685" d="M -8.8582714,2.4606366 V 2.6574871" d="m -4.3503976,2.5590618 h -0.19685" d="M -3.5433071,7.381896 V 7.5787465" d="m -6.7913384,7.4803212 h -0.19685" d="m 2.9527508,8.8202247 v 0.07874" d="m -4.6850386,1.1811083 h -0.07874" d="m -0.59055042,2.521019 v 0.07874" d="m -0.55118022,2.5590618 h -0.07874" d="m -0.59055042,2.521019 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'], 'dilbert.com/strip/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } // PhD Unknown elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = new DOMDocument(); $doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } Various updates, additions elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } drugs & wires, pilotside drugs & wires, pilotside elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // Joy of Tech elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) .

New Pull Request