diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index 0d876c423..fc38fef71 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -36,12 +36,20 @@ class NSFW extends Plugin { $article_tags = $article["tags"]; if (count(array_intersect($tags, $article_tags)) > 0) { - $article["content"] = "
" . __("Not safe for work (click to toggle)") . "" . $article["content"] . "
"; + $article["content"] = "
" . __("Not safe for work (click to toggle)") . "" . $article["content"] . "
"; } return $article; } + function get_css() { + return + 'details.nsfw { + cursor : pointer; + user-select : none; + }'; + } + function hook_render_article_api($row) { $article = isset($row['headline']) ? $row['headline'] : $row['article']; return $this->rewrite_contents($article);