3
1
Back

Lines elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // only keep everything starting at the first if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Three Panel Soul $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } function hook_render_article($article) { return $this->mangle_article($article); } function hook_render_article($article) { } //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Various updates, additions Various updates, additions // PhD Unknown // Robot Hugs $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tags elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath.

New Pull Request