3
1
Back

2.5787307,3.1496068 h -0.19685" d="M -6.8897672,9.54725 V 9.744101" d="m -6.7913422,9.645676 h -0.19685" d="m -3.5433111,12.893708 v 0.19685" d="m -3.4448861,12.992133 h -0.19685" d="M -5.3937043,2.4606366 V 2.6574871" d="m -4.3503976,2.5590618 h -0.19685" d="M 2.4803055,8.7598422 V 8.9566927" d="m 2.5787305,8.8582674 h -0.19685" d="m -6.8897674,11.318904 v 0.196852" d="m -3.4448861,11.41733 h -0.19685" d="m 3,3.875 v 0.25" d="m 2.875,4 h 0.25" d="M 1.574803,5.905513 H 1.1811022" d="m 2.9527563,10.236223 v 0.393701" d="m 4.3307094,5.905513 h 0.393701" d="M 2.9527563,1.5748029 V 1.181102" d="m -0.44985651,6.0200689 -1.06879179,0 -0.5343958,-0.9256008 0.5343959,-0.9256008 1.06879179,0 0.53439582,0.9256009 z" d="m -12.693837,3.4536024 v 0.281728" d="m 2.9527508,8.8188983 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'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Penny Arcade elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Dinosaur Comics Cleanup $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR.

New Pull Request