3
1
Back

D="M 1.692914,7.6141757 H 1.8897644" d="M 0.70866165,8.4015775 V 8.598428" d="M 0.98425229,8.3228372 V 8.5196877" d="M 1.2204729,8.0472466 V 8.2440971" d="M 1.4566934,7.8503962 V 8.0472466" d="M 1.692914,7.6535458 V 7.8503962" d="m 1.8897644,26.237798 -1.65354393,-3e-6" d="m 0.39370092,26.040948 v 0.19685" d="m -3.4448861,12.992133 h -0.19685" d="M 2.4803057,3.0511816 V 3.2480321" d="m 2.5787307,3.1496068 h -0.19685" d="m -2.5590543,2.521019 v 0.07874" d="m -2.5196841,2.5590618 h -0.07874" d="m -4.7244126,1.1417373 v 0.07874" d="m -0.55118022,2.5590618 h -0.07874" d="m -4.7244126,1.1417373 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 elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Awkward Zombie $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Joy of Tech * Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; } // Eat That Toast bog-standard example // Breaking Cat News $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, } //and sometimes necessary for old fogeys like me to get what game it's about $orig_content = strip_tags($article['content']); $article['content'] .= "ID: " . $img->getAttribute('title') .

New Pull Request