There is no way to get rid of the contents of <noscript>
when the user enables JavaScript, you will need to refresh, and that only the user can do , you have no way around this , except maybe use meta = refresh to keep reloading the page until the user enables JavaScript, for example:
<noscript>
<!-- faz o refresh de 10 em 10 até que o usuário reabilite o cache -->
<meta http-equiv="refresh" content="10">
Para completa funcionalidade deste site é necessário habilitar o JavaScript.
Aqui estão as <a href="https://www.enable-javascript.com/pt/" target="_blank">
instruções de como habilitar o JavaScript no seu navegador</a>.
</noscript>
One of the reasons for this is because browsers have a runtime in insert ("import") JavaScript, for example, if you could perform a function only the person's enable JavaScript then functions like:
document.write
They would fail or overwrite the whole page because this kind of functions need to be executed according to the "rendering" flow of the DOM (of the page), so it is necessary to reload the entire page so that the behavior is expected as rendered.
Browsers still come with JavaScript disabled?
I want you to understand one thing, it is practically impossible for a user to disable JavaScript, this was happening at the time in IE 4, 5 and NetScape 4, because at the time JavaScript was not enabled by default (if I make no mistake), now actually in today's day it is unlikely that the user will browse sites without JavaScript, it is very rare a website that does not rely on such technology, so the user simply could not navigate anything.
If there is any reason for the user to have disabled it was certainly intentional, that is, even if you put the instructions to enable it, you probably know how to do it and know that you will have to refresh (F5, Ctrl + R, etc.) .
So worrying about something like this these days really is something unnecessary because if the user does not want to use javascript enabled, he probably knows what javascript is and has a very good and personal motivation and probably it will enable javascript when necessary, of course you can leave the message, but you can be sure that if he knows to disable it, he will also know how to enable it and know how to refresh after it.