3
1
Back

$this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } Added BCN, Something Positive elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Drugs and Wires drugs & wires, pilotside drugs & wires, pilotside Various updates, additions Various updates, additions Various updates, additions Fix for when invisiblebread has no bread function rel2abs($rel, $base) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Something Positive } if (ADD_IDS) { * Inserts text captions from any image with an alt or title tag. Function alt_textify($article, $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // Questionable Content (cleanup elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function mangle_article($article) { // Dilbert // Dilbert elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMXpath($doc); $imgs .

New Pull Request