<script src="http://localhost:3000/test.js?addr=(address)"> </script
The address is different for each instance I tried the answers from What is my script src URL? and JavaScript - How do I get the URL of script being called? but they always give the same source. Here is an example output from
var scripts = document.getElementsByTagName('script'),
script = scripts[scripts.length - 1];
console.log (script.getAttribute('src', -1))
How can I get the actual source?