3
1
Back

Cleanup More cleanup // $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 api_version() { return array( $html, $content_type); } function hook_render_article($article) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $article['id']; } return $result_html; } function hook_render_article($article) { return 2; } } } } // Two Lumps elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // And get blog $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $article['id']; } return $article; } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { Fix for when invisiblebread has no bread achewood, gwss fix, fix for when invisiblebread has no bread Pain Train alt tag, Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Dinosaur Comics Cleanup // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { if (!$title_text || $title_text == $article['title'] || strpos($article['title'], $title_text) !== False) { if (two_holes_type == "opposite") { } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { //noop elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "
ID: " .

New Pull Request