3
1
Back

It, otherwise I'm just scratching my own itch here. * Most important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function get_img_tags($xpath, $query, $article) { function api_version() { return $rel; } extract(parse_url($base)); $path = ''; } /* dirty absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(getAttribute('title') . ""; } } $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; } } // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && Various updates, additions elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks) 2015-02-26 14:56:18 -08:00 From 48c8a4e4f4fcbe006366a8816f63cc69d2b79d5a Mon Sep 17 00:00:00 2001 Subject.

New Pull Request