3
1
Back

On https://github.com/oguzbilgic/fpd, which has broken alt tags if both exist elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // Camp Weedonwantcha elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } // PhD Unknown elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } // Dilbert elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { // replace the
(containing project wonderful) with nothing $article['content'] = $doc->saveXML(); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//div[@class="container"]//center//img)', $article); } // Joy of Tech Scenes From A Multiverse (to get alt tag) // Pain Train (to get alt tags) elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Chainsawsuit elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; $article = $this->alt_textify($article); $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; } // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL // CTRL+ALT+DEL // Three Panel Soul // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } achewood, gwss fix, fix for when invisiblebread has no bread Pain Train alt tag, Alice Grove (get bigger image) // Alice Grove bigger img Gunnerkrigg and cleanup of alt-tag-only sites Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content.

New Pull Request