1. <script> $(window).on('load', function() { qa_element_revealed=document.getElementById('anew'); }); </script> 2. <script> var b = document.getElementsByTagName('body')[0]; b.className = b.className.replace('qa-body-js-off', 'qa-body-js-on'); </script>
1.
<script>
$(window).on('load', function() {
qa_element_revealed=document.getElementById('anew');
});
</script>
2.
var b = document.getElementsByTagName('body')[0];
b.className = b.className.replace('qa-body-js-off', 'qa-body-js-on');
How to remove these ?
The first script can be found in https://github.com/q2a/question2answer/blob/78b969da37468e8668559e3ffe23687ae5587129/qa-include/pages/question.php
If you think some scripts are suspicious you can search the unique texts in Q2A github respository (https://github.com/q2a/question2answer) .
This script is related to answer button, because the button is an ajax feature, it needs some javascript.
The second script is part of the public function body_script() in https://github.com/q2a/question2answer/blob/7763be86aa74f839f8fad89d30f2130f72716189/qa-include/qa-theme-base.php
The reason https://www.question2answer.org/qa/27609/why-do-we-use-qa-body-js-off-and-qa-body-js-on-classes
And https://github.com/q2a/question2answer/issues/654
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.