Labels Milestones
BackFails due to referer checks elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Scenes From A Multiverse (to get alt tags elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); // Three Panel Soul elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme . '://' . $abs; } Add more note files from the corner