Work around teambuilder virus issue

There's a virus floating around that's causing teambuilder not to work
for many users. Further investigation shows that it deletes the tenth
byte before the utilichart.js include, changing a </script> into
</sript> and preventing the utilichart.js include from working.

This change prevents the virus from interfering with utilichart.js,
and also makes it possible to detect the virus. We currently don't
do anything after detecting it, though.
This commit is contained in:
Guangcong Luo
2014-01-03 22:45:43 -06:00
parent 925df76a8d
commit 95f2b90d9a

View File

@@ -133,6 +133,9 @@
<script>
var app = new App();
// $(function() {
// if (document.getElementById('test').innerHTML !== 'test') alert("Warning: You have a virus.");
// });
</script>
<script src="//play.pokemonshowdown.com/data/learnsets-g6.js?"></script>
@@ -144,7 +147,9 @@
<script src="//play.pokemonshowdown.com/data/items.js?"></script>
<script src="//play.pokemonshowdown.com/data/abilities.js?"></script>
<script src="//play.pokemonshowdown.com/js/utilichart.js?"></script>
<!-- some virus screws with data, so we're giving it some unused data to screw with -->
<script id="test" type="text/template">test</script><script src="//play.pokemonshowdown.com/js/utilichart.js?"></script>
<script src="//play.pokemonshowdown.com/data/aliases.js?" async="async"></script>