Skip to content

Instantly share code, notes, and snippets.

@alexcu
Last active September 22, 2021 06:03
Show Gist options
  • Save alexcu/fb6995a99f82a380892641e2d2dafc1e to your computer and use it in GitHub Desktop.
Save alexcu/fb6995a99f82a380892641e2d2dafc1e to your computer and use it in GitHub Desktop.
Extract my Locke ID from realestate.com.au's cookies
javascript:(function()%7Balert(JSON.parse(atob(document.cookie.split(%22%3B%22).map(c%20%3D%3E%20c.trim()).filter(c%20%3D%3E%20c.startsWith(%22reauinf%22))%5B0%5D.split(%22%3D%22)%5B1%5D)).lid)%7D)()
JSON.parse(atob(
document.cookie.split(";")
.map(c => c.trim())
.filter(c => c.startsWith("reauinf"))[0]
.split("=")[1]
)).lid
@alexcu
Copy link
Author

alexcu commented Sep 22, 2021

Save the code in bookmarklet.js as a bookmark for easy access

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