Skip to content

Instantly share code, notes, and snippets.

@juzim
Created January 30, 2018 20:32
Show Gist options
  • Save juzim/2e3a840d6e0b4784498693671f0a8c2a to your computer and use it in GitHub Desktop.
Save juzim/2e3a840d6e0b4784498693671f0a8c2a to your computer and use it in GitHub Desktop.
Extract all steam keys from a fanatical.com order page
var nodes = document.getElementsByClassName('text-center font-weight-bold form-control')
var res = [];
for (var i = 0; i < nodes.length; i++) { res.push(nodes[i].value);}
console.log(res.join("\n"))
@AnnanFay
Copy link

AnnanFay commented Jul 5, 2021

No longer works

Working version:

[...document.querySelectorAll('input.key-input-field')].map(n=>n.value).join('\n')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment