3
1
Back

$article); function mangle_article($article) { if ($img->getAttribute('title')) { // 90° base rotation angle to align the cones with corners of the Stick elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Two Lumps elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Wondermark (alt tag elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $article['content'] = $matches[1]; elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags textified. Function rel2abs($rel, $base) { function rel2abs($rel, $base) { $rel = trim($rel); $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $article['content'] .= $aftercomic; $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } Some comics supported if (strpos($article["link"], "penny-arcade.com") !== FALSE && Various updates, additions /* dirty absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE.

New Pull Request