forked from rDrama/rDrama
fix showmore button on old posts
parent
e5f7c7a918
commit
1a91f42872
|
@ -264,7 +264,7 @@ 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.getElementsByTagName('d')[0]
|
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