forked from rDrama/rDrama
fix showmore in profile bios
parent
f3541dec54
commit
db6f0bf3a6
|
@ -232,11 +232,7 @@ function escapeHTML(unsafe) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function showmore(t) {
|
function showmore(t) {
|
||||||
let div = t
|
div = t.parentElement.parentElement.parentElement
|
||||||
while (!(div.id && (div.id.startsWith('comment-text-') || div.id == 'post-text'))){
|
|
||||||
div = div.parentElement
|
|
||||||
}
|
|
||||||
div = div.parentElement
|
|
||||||
|
|
||||||
let text = div.getElementsByTagName('d')[0]
|
let text = div.getElementsByTagName('d')[0]
|
||||||
if (!text) text = div.getElementsByClassName('showmore-text')[0]
|
if (!text) text = div.getElementsByClassName('showmore-text')[0]
|
||||||
|
|
Loading…
Reference in New Issue