Skip to content

Instantly share code, notes, and snippets.

@tpai
Created June 11, 2019 15:29
Show Gist options
  • Select an option

  • Save tpai/9b6a99962d70877d3382f14e722c5283 to your computer and use it in GitHub Desktop.

Select an option

Save tpai/9b6a99962d70877d3382f14e722c5283 to your computer and use it in GitHub Desktop.
var root = document.querySelector('#v-game-countdown').nextSibling;
var rootObserver = new MutationObserver((mutations) => mutations.map(mutation => {
[].slice.call(document.querySelectorAll('.v-game-target img')).map((target) => {
target.click();
});
}));
rootObserver.observe(root, {
childList: true
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment