3
1
Back

(strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div//img[contains(@src, 'images') and contains(@src, 'uploads') and contains(@src, 'uploads') and contains(@src, 'png')]", $article); } 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 Gunnerkrigg and cleanup of alt-tag-only sites Invisible Bread, Softer World (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); $alt_text = $entry->getAttribute('alt'); $alt_text = $entry->getAttribute('alt'); $alt_text = $entry->getAttribute('alt'); $alt_text = trim($entry->getAttribute('title')); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } } } Dead Philosophers 2015-02-25 15:05:54 -08:00 // Poorly Drawn Lines elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); //also append the blarg post because that's small, interesting, } //and sometimes necessary for voltage clearance (UCC256301, https://www.ti.com/lit/ds/symlink/ucc256301.pdf SOIC, 14 Pin Vertical EPCOS-B66359J1014T AUDIO TRAFO LUNDAHL.

New Pull Request