forked from rDrama/rDrama
same as last commit
parent
1a91f42872
commit
c346997d5d
|
@ -264,7 +264,9 @@ function showmore(t) {
|
||||||
while (!(div.id && (div.id.startsWith('comment-text-') || div.id == 'post-text'))){
|
while (!(div.id && (div.id.startsWith('comment-text-') || div.id == 'post-text'))){
|
||||||
div = div.parentElement
|
div = div.parentElement
|
||||||
}
|
}
|
||||||
div = div.getElementsByClassName('d-none')[0]
|
div = div.getElementsByTagName('d')[0]
|
||||||
|
if (!div) div = div.getElementsByClassName('d-none')[0]
|
||||||
|
|
||||||
div.classList.toggle('d-none')
|
div.classList.toggle('d-none')
|
||||||
if (div.classList.contains('d-none'))
|
if (div.classList.contains('d-none'))
|
||||||
t.innerHTML = 'SHOW MORE'
|
t.innerHTML = 'SHOW MORE'
|
||||||
|
|
Loading…
Reference in New Issue