From 9984fea7aa6fd96fcde30f35f5a8d1a3bceebfc3 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 16 May 2023 05:05:19 +0300 Subject: [PATCH] do this https://rdrama.net/h/changelog/post/165657/changelog-megathread-marseynotes/4161153#context --- files/assets/js/core.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/files/assets/js/core.js b/files/assets/js/core.js index b8c7ccd47..aae341814 100644 --- a/files/assets/js/core.js +++ b/files/assets/js/core.js @@ -236,13 +236,8 @@ function showmore(t) { if (!text) text = div.getElementsByClassName('showmore-text')[0] if (!text) text = div.querySelector('div.d-none') - text.classList.add('showmore-text') - - text.classList.toggle('d-none') - if (text.classList.contains('d-none')) - t.innerHTML = 'SHOW MORE' - else - t.innerHTML = 'SHOW LESS' + text.classList.remove('d-none') + t.remove() } function formatDate(d) {