3
1
Back

Checks) Invisible Bread, Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $doc = new DOMXPath($doc); } function hook_render_article($article) { try { return $this->mangle_article($article); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // SatW elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { // Robot Hugs $entries = $xpath->query("//div[@class='entry']"); // VG Cats $vgcats_url = $vgcats_url_node->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } Some comics supported elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Eat That Toast bog-standard example elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') .

New Pull Request