Labels Milestones
BackBin 56316 -> 69096 bytes } elseif (strpos($title_text, $alt_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 elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } Clean up code formatting; added a few due to referer checks Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // SBMC // SBMC elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // only keep everything starting at the first " . $entry->textContent . ""; if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && $alt_text != $article['title']){ $result_html .= " // Least I Could Do (wtf image size? If (preg_match("@.*(
Alt: " . $img->getAttribute('title') . ""; } } foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // XKCD (alt tags we don't need to call out for) // XKCD (alt tags we don't need to call out for) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Three Panel Soul * Scenes From A Multiverse 3D.
New Pull Request