Skip to content

Instantly share code, notes, and snippets.

@loop
Created April 16, 2026 19:59
Show Gist options
  • Select an option

  • Save loop/c19d6c18a08844aa087e35a80bb0c3f2 to your computer and use it in GitHub Desktop.

Select an option

Save loop/c19d6c18a08844aa087e35a80bb0c3f2 to your computer and use it in GitHub Desktop.
add this as a chrome bookmarklet
javascript:const txtElmt = document.createElement('div'); txtElmt.textContent = "Tracker here"; txtElmt.style.position = 'fixed'; txtElmt.style.bottom = '20px'; txtElmt.style.left = '20px'; txtElmt.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; txtElmt.style.color = 'white'; txtElmt.style.padding = '10px 15px'; txtElmt.style.borderRadius = '5px'; txtElmt.style.fontFamily = 'Arial, sans-serif'; txtElmt.style.zIndex = '1000'; document.body.appendChild(txtElmt); btns=Array.from(document.querySelectorAll("button[title='Add to Card'], button[title='add to list card'], [data-testid='merchantOfferAddButton']")).reverse(); c=()=>{ txtElmt.textContent = btns.length; b = btns.pop(); if (!b) return alert('added all!'); b.scrollIntoView({behavior:'smooth', block:'center'});b.click(); console.log("clicked:"+b.getAttribute("aria-label")); setTimeout(c, 1500 * Math.random() + 800)};c();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment