3
1
Back

17a7121e-b68e-480a-a63e-d9064ffac0d1 function mangle_article($article) { Added BCN, Something Positive Some comics supported elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Invisible Bread (make the bread visible) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // SatW // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Two Lumps // Breaking Cat News // Something Positive Some comics supported elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Chainsawsuit elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // Chainsawsuit // Chainsawsuit elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); Invisible Bread, Softer World (alt tags we don't need to call out for) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // slider.

New Pull Request