I have a website I host that uses jquery hosted with google cdn from https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
One of my users is complaining the site doesnt work for them. I got them to look in the developer console and they had some error with jquery.min.js so I got them to open the link in a new tab and send me the file. In the bottom of their file is some script that trys to post data to adloads.net but the //# sourceMappingURL
in the jquery.min.js causes a javascript error.
I assume they have some malware browser plugin or maybe a virus that injected the extra script into their browser cache.
Is there some way I harden my website so it is not broken for this type of malware? What advice should I give the user?
edit: since posting this I learned about the integrity attribute - it doesn't fix the site for these users but I feel it should be used on external resources: https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity