Anonymizer how to work with references in js files?

Hello, here wrote its not a great anonymizer, everything works but there are nuances such as links to js scripts, it is clear that to encrypt the reference source is not a problem if they are on the html page, but I was wondering how you can replace the links in script files? For example, if in the script that reference $.ajax({
url: '/somethigURL',
As well, in that case to do? After all, any reference to begin with domain hosting your script, you can write your script to handle the scripts (js) on the fly according to their sylanel? Maybe someone figured out how to implement this, please share? P. S noticed a problem in all the anonymizers.
June 5th 19 at 21:25

Find more questions by tags HTMLJavaScriptPHP