How to print all scripts code of an opened page?
All scripts are in .js local files or added by appending
document.body.appendChild(script);
I've tried to get it by var scriptList = document.scripts; or by getting nodes from HTML. All I got is object of HTMLCollection with array of scripts(without the code I need) or
<body>
<script src="one.js"></script>
<script src="two.js"></script>
<script src="three.js"></script>
<script type="text/javascript".src="https://xxx.js/"></script>
</body>
What I never get is the actual running code. Any ideas how to get it? I believe the code somewhere in browser memory, because the code is running and I can see it in inspector.