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
// 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)); |