3
1
Back

File f6c7924538 Messing around with panel title fonts } // Poorly Drawn Lines elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); } // Pain Train (to get alt tags elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $doc = new DOMDocument(); elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) function about() { return $rel; } if ($rel[0]=='#' || $rel[0]=='?') { return $base.$rel; } extract(parse_url($base)); $path = ''; } .

New Pull Request