2026
ig changed their DOM. old selectors broke. the seek bar stopped working.
so i looked at what else was out there. found 10+ related repos. one of them — the one i learned the most from — was 404. gone.
point is: you can rebuild anything better than what's already on github. code disappears. knowledge doesn't.
the old script (v1.0) had 4 fatal assumptions about ig's DOM:
video.closest('article') // ig no longer wraps reels in <article>
svg[aria-label*="Save'] // ig changed the aria-labels on action buttons
no SPA navigation handling // pushState/replaceState not intercepted
keydown listener per video // memory leak — new listener every scan
v3.2.0 — rebuilt from scratch:
nasa's jet propulsion lab wrote 10 rules for safety-critical code. I applied them to a userscript:
github is full of broken repos. 404s. abandoned projects. scripts that worked 6 months ago and don't anymore.
but the knowledge in those repos? still there. if you read the code, understand the patterns, and rebuild — you can make something better.
one of the repos i credited learned from? 404. the aria-label selectors for save/remove buttons? i found them in that gist before it disappeared. now they're in my script.
code is temporary. understanding is permanent.
10 repos that informed this rebuild: