3
1
Back

8e97a73397 Dead Philosophers // Dead Philosophers $doc->loadHTML($article['content']); // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { //noop $xpath = new DOMXPath($doc); return $xpath; } function hook_render_article_cdm($article) { return $this->mangle_article($article); } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { // PhD Unknown elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { //also append the blarg post because that's small, interesting, $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); // Questionable Content (cleanup) elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users.

New Pull Request