Skip to content

Instantly share code, notes, and snippets.

@matti
Created July 26, 2022 15:57
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 matti/d0a654b9bfe422156eac3c654f00fc37 to your computer and use it in GitHub Desktop.
Save matti/d0a654b9bfe422156eac3c654f00fc37 to your computer and use it in GitHub Desktop.
var items = document.querySelectorAll(".list-item--8QFZA")
var elements = Array.from(items)
//var els = elements.slice(0, 3)
var els = elements
document.addEventListener("visibilitychange", function () {
if (document.visibilityState === 'visible') {
els.pop().click()
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment