3
1
Back

"//div[@id='comic']/noscript/img", $article); } // Poly In Pictures elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users function get_content($link) { /** * Use this if you want to dig into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } // SatW elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } achewood, gwss fix, fix for when invisiblebread has no bread From 6a9c45505ac6d396b29028a4373b6ff337eac9d1 Mon Sep 17 00:00:00 2001 Subject: [PATCH.

New Pull Request