Skip to content

Instantly share code, notes, and snippets.

@Metnew
Created October 15, 2018 20:22
Show Gist options
  • Select an option

  • Save Metnew/e6ee86a6a32358977bc1774f980a6de8 to your computer and use it in GitHub Desktop.

Select an option

Save Metnew/e6ee86a6a32358977bc1774f980a6de8 to your computer and use it in GitHub Desktop.
dumps window keys, useful in mobile browsers (in very rare cases)
<html>
<body>
<script>
const win = Object.keys(window)
fetch('http://192.168.0.101:3000/browsers', {
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'
},
method: 'POST',
body: JSON.stringify(win)
}).then(function (res) {
console.log(res)
}).catch(function (res) {
console.log(res)
})
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment