Created
July 26, 2022 15:57
-
-
Save matti/d0a654b9bfe422156eac3c654f00fc37 to your computer and use it in GitHub Desktop.
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
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