3
1
Back

$host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); } function mangle_article($article) { // SatW elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { // SBMC elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = 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='cc-comicbody']//img", $article); } Invisible Bread, Softer World (alt tags we don't need.

New Pull Request