3
1
Back

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.4803055,8.7598422 V 8.9566927" d="m 2.5787305,8.8582674 h -0.19685" d="M 2.4803057,3.0511816 V 3.2480321" d="m 2.5787307,3.1496068 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.5433071,7.381896 V 7.5787465" d="m -3.4448821,7.4803212 h -0.19685" d="m 3.4251927,4.4291344 v 0.196852" d="m 3.5236177,4.5275604 h -0.19685" d="m 2.9527508,8.8202247 v 0.07874" d="m -4.6850386,1.1811083 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: * Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); // Doghouse Diaries, which has broken alt tags if both exist elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } achewood, gwss fix, fix for when invisible bread has no bread Pain Train alt tag, Alice Grove (get bigger image elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Chainsawsuit elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // draw a "vertical" wall to mount the circuit board sideways on // h = z height, e.g. Height.

New Pull Request