3
1
Back

Bit 057198b8de MK VCO and Luthers Update README.md Update README.md 5505000471ab249f70d985a8f814bce077fb47b2 Update README.md 40588ba725f2f6c7240cc5d95c2a8af539e27e15 Update README.md 2015-02-23 04:37:33 -08:00 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)) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Two Lumps // Two Lumps elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Poly In Pictures } // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Questionable Content (cleanup) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites Gunnerkrigg and cleanup of alt-tag-only sites // Gunnerkrigg Court elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // And get blog //also get the source code, documentation source, and configuration files. "Object" form shall mean the preferred form for making modifications, including but not in contravention of, applicable.

New Pull Request