link = $host->get_link(); $this->host = $host; $host->add_hook($host::HOOK_RENDER_ARTICLE, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); } function get_js() { return file_get_contents(dirname(__FILE__) . "/init.js"); } function hook_render_article($article) { if (array_search("nsfw", $article["tags"]) !== FALSE) { $article["content"] = "