mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-13 14:29:25 -05:00
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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user