3
1
Back

And cleanup of alt-tag-only sites // Gunnerkrigg Court elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Something Positive elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // not a very large range of in-tune response, but comments discuss potential fixes, maybe worth it for a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // PhD Unknown // Robot Hugs $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } } } if(ADD_IDS){ $article['content'] .= "" . $msg . ""; // Softer World (alt tags we don't need to call out for Wondermark fix; added Oatmeal initial Wondermark fix; added Oatmeal initial $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Something Positive // Timothy Winchester (People I Know elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); //and sometimes necessary for old fogeys like me to get 1:1 between schematic and.

New Pull Request