3
1
Back

264 lines define('ADD_IDS', True); define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { function api_version() { return $base.$rel; if ($rel[0] == '#' || $rel[0] == '?') { return $rel; } if ($alt_text && !$title_text){ } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type); } function hook_render_article($article) { try { return $this->mangle_article($article); } function mangle_article($article) { // PhD Unknown elseif (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 (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { .

New Pull Request