3
1
Back

Y4=hg; y5=hg+0.1; if ( hsh >= 0 ) { // Awkward Zombie elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } } // Awkward Zombie elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ /* dirty absolute URL */ $abs = "$host$path/$rel"; /* replace '//' or '/./' or '/foo/../' with '/' */ $re.

New Pull Request