Ozon: apply all promo
Last active
June 23, 2021 08:27
-
-
Save dmlogv/22f935391df8ba4b1f46d5c6b803185f to your computer and use it in GitHub Desktop.
Apply all Ozon coupons
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
/* | |
- Open https://www.ozon.ru/info/actions/?filter=coupons | |
- Open a Developer console | |
- Paste code below | |
- Run it :) | |
*/ | |
var tags = document.getElementsByTagName('span'); | |
var text = 'Применить'; | |
for(var tag of tags) { | |
if(tag.innerText == text){ | |
console.log(tag.click()) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment