From 1f1f4c6be8e7a3a8c2dc5425cb9d71ac76aaf04f Mon Sep 17 00:00:00 2001 From: KillyMXI Date: Fri, 2 Jun 2017 21:29:45 +0300 Subject: juick-www: embed fixes --- juick-www/src/main/static/scripts.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'juick-www/src/main/static/scripts.js') 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'); } }); -- cgit v1.2.3