agriget/plugins/nsfw/init.js
2019-03-22 10:17:29 -04:00

8 lines
152 B
JavaScript

function nsfwShow(elem) {
let content = elem.parentNode.getElementsBySelector("div.nswf.content")[0];
if (content) {
Element.toggle(content);
}
}