I hereby claim:
- I am jameswang14 on github.
- I am jameswang (https://keybase.io/jameswang) on keybase.
- I have a public key whose fingerprint is 6A47 F3C6 82BA 6CFA 5C12 F0A4 1C97 D920 770C 9184
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
document.querySelectorAll("[title='Add to Card']").forEach((e, i) => { | |
setTimeout(() => {e.click()}, i*5000) | |
}) |
let coupons = Array.from(document.querySelectorAll('button')) | |
.filter(el => el.textContent === 'Clip') | |
let lastCount = 0 | |
while (coupons.length > lastCount) { | |
lastCount = coupons.length | |
// scroll to bottom and wait for coupons to load | |
window.scrollTo(0, document.body.scrollHeight); |
// Go to all offers page | |
function waitForElm(selector) { | |
return new Promise(resolve => { | |
if (document.querySelector(selector)) | |
{ | |
return resolve(document.querySelector(selector)); | |
} | |
const observer = new MutationObserver(mutations => { |