aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main/static/scripts.js
diff options
context:
space:
mode:
authorGravatar KillyMXI2017-06-02 21:29:45 +0300
committerGravatar Vitaly Takmazov2017-06-03 15:08:24 +0300
commit1f1f4c6be8e7a3a8c2dc5425cb9d71ac76aaf04f (patch)
tree431b863f3c5aba32a7deff59695a0fbec4820a53 /juick-www/src/main/static/scripts.js
parent7817d34a3f012f6c2cd446b70f97d6dcc72e6170 (diff)
juick-www: embed fixes
Diffstat (limited to 'juick-www/src/main/static/scripts.js')
-rw-r--r--juick-www/src/main/static/scripts.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/juick-www/src/main/static/scripts.js b/juick-www/src/main/static/scripts.js
index 7de14b34..e3d2445a 100644
--- a/juick-www/src/main/static/scripts.js
+++ b/juick-www/src/main/static/scripts.js
@@ -736,16 +736,7 @@ ready(function () {
return a.textContent === 'NSFW';
}
)) {
- var img = article.querySelector('.ir img');
- if (img) {
- img.style.opacity = 0.05;
- img.addEventListener('mouseover', function (e) {
- e.target.style.opacity = 1;
- });
- img.addEventListener('mouseout', function (e) {
- e.target.style.opacity = 0.05;
- });
- }
+ article.classList.add('nsfw');
}
});