3
1
Back

Size No matching results found. // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); // Eat That Toast bog-standard example // Breaking Cat News // Breaking Cat News // Something Positive Some comics supported elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } Added The Trenches; yet more code style tweaking 2015-03-27 02:51:25 -07:00 Subject: [PATCH] More.

New Pull Request