Last active
September 2, 2018 20:11
-
-
Save lingsamuel/8d8137164ebcb3b4632cb83270dc03b8 to your computer and use it in GitHub Desktop.
Output all items' name in Steam cart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In https://store.steampowered.com/cart/ | |
// Get array | |
Array.from(document.getElementsByClassName("cart_item_desc")).map(x=>x.innerText); | |
// Get title text | |
Array.from(document.getElementsByClassName("cart_item_desc")).map(x=>x.innerText).join(""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment