Skip to content

Instantly share code, notes, and snippets.

@dfar-io
Created November 22, 2019 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfar-io/3321899c9821e7304c63ab49fd42ea6c to your computer and use it in GitHub Desktop.
Save dfar-io/3321899c9821e7304c63ab49fd42ea6c to your computer and use it in GitHub Desktop.
# Gets the trade-in value on KBB
var rangeBox = document.getElementById("RangeBox")
var html = rangeBox.innerHTML
html.substring(html.indexOf("y=\"-8") + 8, html.lastIndexOf("</"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment