3
1
Back

Z" d="M 2.3622056,6.4724214 V 6.6692718" d="m -12.567089,3.5884071 -0.25952,-1.5e-6 -0.04325,0.098152 -0.20418,0.098312 -0.103702,-0.027396 -0.16184,0.2028757 0.04976,0.09502 -0.04954,0.2168038 -0.08609,0.063984 0.05768,0.25303 0.105308,0.02036 0.138593,0.1739229 -0.0037,0.1071966 0.233769,0.1127053 0.08159,-0.069628 0.230661,-1.4e-6 0.08159,0.069628 0.233769,-0.1127053 -0.0037,-0.1071967 0.138592,-0.1739233 0.105309,-0.02036 0.05767,-0.25303 -0.08609,-0.063984 -0.04954,-0.2168031 0.04976,-0.09502 -0.161839,-0.2028755 -0.103702,0.027396 -0.20418,-0.098309 z" d="m -12.693837,3.4536024 v 0.281728" d="m 2.9527508,8.8188983 v 0.07874" d="M 2.992121,8.8582675 H 2.913381" It's really just a borked RSS feed elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($alt_text, $title_text) !== false){ $text_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users 1e6cc98f41 Various updates, additions elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Dilbert elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Girls with Slingshots elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] .= $aftercomic; } } Clean up.

New Pull Request