3
1
Back

// Manic Pixie Nightmare Girls elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $alt_text); $para_element->appendChild($alt_element); $para_element->appendChild($doc->createElement("br")); $title_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } $img->parentNode->replaceChild($new_element, $img); } function rel2abs($rel, $base) { function rel2abs($rel, $base) { function api_version() { return $this->mangle_article($article); } function hook_render_article($article) { return $base.$rel; if ($rel[0] == '/') { $path = ''; foreach ($entries as $entry){ $article['content'] .= "
$orig_content
"; } // Pain Train (to get alt tags) } // Wondermark (alt tag already present elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // not a comic, just a borked RSS feed elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Three Panel Soul elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { //also append the blarg post because that's small, interesting, } //and sometimes necessary for old fogeys like me to get what game it's about } // Wondermark (alt tag already present elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Two Lumps elseif (strpos($article['link.

New Pull Request