Last active
November 22, 2020 23:47
-
-
Save mattcdowning/5b89418c179d3b8b643358d4d7684856 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
[...document.querySelectorAll('.offer-cta')].forEach(x => { | |
if (x.textContent.includes('Add to Card')) { | |
setTimeout(x.click(), 1000) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment