Skip to content

Instantly share code, notes, and snippets.

@willywotz
Created April 20, 2021 00:40
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 willywotz/c0c7435db3445439024db137b8e20a6e to your computer and use it in GitHub Desktop.
Save willywotz/c0c7435db3445439024db137b8e20a6e to your computer and use it in GitHub Desktop.
const targetNode = document.querySelector(
"#root > section:nth-child(3) > div > div.col-xl-5.col.ml-auto.order-1.text-center.align-items-center.justify-content-center > button"
)
const observer = new MutationObserver(() => targetNode.click())
observer.observe(targetNode, { attributes: true })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment