diff options
author | Andrew Dolgov <[email protected]> | 2013-02-23 16:02:29 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-02-23 16:02:29 +0400 |
commit | 1b9f9925cfc501828335efa17ae70fd0ac907d2c (patch) | |
tree | 4233859ae78853f14739be01332d4375857b64be /plugins/nsfw/init.js | |
parent | 32c399b1bfdb1446a0ee9a78ad746f078b3d5605 (diff) |
add nsfw plugin
Diffstat (limited to 'plugins/nsfw/init.js')
-rw-r--r-- | plugins/nsfw/init.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/nsfw/init.js b/plugins/nsfw/init.js new file mode 100644 index 000000000..40ad2b0ba --- /dev/null +++ b/plugins/nsfw/init.js @@ -0,0 +1,12 @@ +function nsfwShow(elem) { + try { + content = elem.parentNode.getElementsBySelector("div.nswf.content")[0]; + + if (content) { + Element.toggle(content); + } + + } catch (e) { + exception_error("nswfSHow", e); + } +} |