Created
May 16, 2024 15:06
-
-
Save sorpdev/5c63ed07fbec68d18fb5c160b9b95ab8 to your computer and use it in GitHub Desktop.
script to activate all coupons on https://www.payback.de/coupons
This file contains hidden or 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.querySelector("pb-coupon-center").shadowRoot.querySelectorAll("pbc-coupon").forEach(c => { | |
| c.shadowRoot.querySelector("pbc-coupon-call-to-action").shadowRoot.querySelector(".not-activated")?.click(); | |
| }); | |
| if (confirm("Fertig. Seite neu laden?")) { | |
| location.reload(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment