Labels Milestones
Back= $this->get_xpath_dealie($article['link']); Updated LICD, alter alt-textify to handle both title and alt tags elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Pain Train alt tag, Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { Clean up code formatting; added a few due to referer checks Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics Cleanup $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= "
Alt: $alt_text"; } } // Two Lumps elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] .= "
$orig_content
"; //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $article['content'] .= "ID: " . $article['id']; } function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $doc = new DOMDocument(); // replace the