Is there a way to prevent browser add-ons from injecting HTML code?
My website built in angularjs is experiencing routing issues due to certain browser add-ons. The following HTML snippet is causing errors in my angularjs:
<script async="" src="http://b.scorecardresearch.com/beacon.js"></script>
<script type="text/javascript" async="" src="http://in1.perfectnavigator.com/d.php?id=57573&eid=&vdisp=0&u=http://www.domain.com/app/#/users&r=http://www.domain.com/site/profile/view/&vdisplayEn=0&vsliderEn=1&bannerAds=1&usadservEx=Oj45JDs7PTUiNg&lrc=0&curatedSite=0"></script>
<script type="text/javascript" src="https://api.jollywallet.com/affiliate/client?dist=111&sub=1&name=Browser%20Extensions"></script>
...
Due to this issue, the original URL:
www.domain.com/app/#/users
gets changed to
www.domain.com/users
This change is causing URL-related errors like:
TypeError: Cannot read property 'charAt' of undefined
The website functions perfectly on browsers without any add-ons, but encounters errors with the mentioned add-ons.
One of our website's users is experiencing this problem. Is there a solution to resolve this?