3
1
Back

I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { Various updates, additions 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'] = $img; } } // Cyanide & Happiness elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // only keep everything starting at the first elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { // Girls with Slingshots $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { // Awkward Zombie // Awkward Zombie elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); .

New Pull Request