Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
366 views
in Q2A Core by
edited by

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>

How to remove these ? 

1 Answer

+2 votes
by
selected by
 
Best answer

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

...