3
1
Back

(strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; } } if ($rel[0]=='#' || $rel[0]=='?') { return $rel; } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = preg_replace("@@", '', $article['content']); // Alice Grove (get bigger image) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // replace the (containing project wonderful) with nothing $article['content'] = $img_tag . $article['content']; } // Three Panel Soul elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $doc = new DOMXpath($doc); elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // $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 hook_render_article($article) { try { return $rel; } extract(parse_url($base.

New Pull Request