Skip to content

Instantly share code, notes, and snippets.

@sorpdev
Created May 16, 2024 15:06
Show Gist options
  • Save sorpdev/5c63ed07fbec68d18fb5c160b9b95ab8 to your computer and use it in GitHub Desktop.
Save sorpdev/5c63ed07fbec68d18fb5c160b9b95ab8 to your computer and use it in GitHub Desktop.
script to activate all coupons on https://www.payback.de/coupons
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