3
1
Back

(strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // } // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(createElement("i", $title_text); } else { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function init($host) { * Use this if you rename the license here: http://creativecommons.org/licenses/by-nc-sa/3.0/ version history --------------- 1.1 2012-04-12 fixed the arrow shaped hole you can unzip into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base) { Fix for when invisible bread has no bread elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] .= $aftercomic; } } //Sites that provide images and just need alt tags textified. If(ADD_IDS){ $article = $this->alt_textify($article); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } // SBMC.

New Pull Request