Skip to content

Instantly share code, notes, and snippets.

View workclockplayground's full-sized avatar

workclockplayground

  • Joined Oct 11, 2025
View GitHub Profile
// capital-one-offers-sorter-with-snapshots-v3.js
// Conservative update of your working file:
// - stores up to 8 snapshots (capitalOneOffersSnapshots_v2 -> v3 change only in MAX_SNAP)
// - fixes "Show List" restore when overlay is hidden (use display:none instead of remove())
// - preserves all parsing, diff logic, filters, and Open behavior unchanged
(async function C1OffersSorter_SnapshotsV3() {
try {
// ---------- small helpers & config ----------
const sleep = ms => new Promise(r => setTimeout(r, ms));