D
D
dollar2019-03-29 19:22:23
JavaScript
dollar, 2019-03-29 19:22:23

What to write in the console to hide the initially open field for entering a comment on the article?

Yes, I know that if you click on any "Reply" button, then the main field for entering a comment collapses itself. But you can't do that. Therefore, do not offer such a cheat, please:

Chit
document.querySelector('.comment__footer-link').click();
The point is just to collapse this spoiler, but do not open other comment input windows at the same time.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
ReActor Dmitry Vershansky, 2019-03-29
@dollar

<details>
   <summary>Спойлер</summary>
   <p>Седержимое</p>
</details>

Won't fit?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question