3
1
Back

'$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // SatW elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } Various updates, additions Fix for when invisiblebread has no bread elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Three Panel Soul elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); } /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ } function hook_render_article($article) { return $this->mangle_article($article); } function hook_render_article_cdm($article) { function about() { return $this->mangle_article($article); } function.

New Pull Request