3
1
Back

5.2165449" d="m -3.444887,5.1181194 h -0.19685" d="M -3.543312,5.0196934 V 5.2165449" d="m -3.444887,5.1181194 h -0.19685" d="m -6.8897674,11.318904 v 0.196852" d="m 3.5236177,4.5275604 h -0.19685" d="m -3.5433111,12.893708 v 0.19685" d="m -3.4448861,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 -5.3937043,2.4606366 V 2.6574871" d="m -5.2952793,2.5590618 h -0.19685" d="m 2.9527508,8.8202247 v 0.07874" d="m -0.55118022,2.5590618 h -0.07874" d="M -4.4488226,2.4606366 V 2.6574871" d="m -6.7913424,2.5590618 h -0.19685" d="m 3.4251919,5.8070862 v 0.196852" d="m -6.7913424,11.41733 h -0.19685" d="m 3.4251919,5.8070862 v 0.196852" d="m 3.5236169,5.9055122 h -0.19685" d="m -3.5433111,11.318904 v 0.196852" d="m 3.5236177,4.5275604 h -0.19685" d="m -2.5590543,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 elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); } // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches.

New Pull Request