A curated list of powerful techniques to manipulate JavaScript code at runtime – great for debugging, prototyping, or reverse engineering frontend behavior directly in the browser (yes, even on mobile).
These methods allow you to inspect, intercept, or override behavior in real time, without changing the actual source code or deploying anything new.
A small browser-side debug script to intercept and modify Solr responses on /search_endpoint/
– useful for UI testing or facet debugging without touching the backend.
- Intercepts
XMLHttpRequest
- Captures the response once it's ready (
readyState === 4
) - Replaces the response with a modified JSON object
- Logs both the original and the modified versions for comparison
Git is hard: screwing up is easy, and figuring out how to fix your mistakes is fucking impossible. Git documentation has this chicken and egg problem where you can't search for how to get yourself out of a mess, unless you already know the name of the thing you need to know about in order to fix your problem.
So here are some bad situations I've gotten myself into, and how I eventually got myself out of them in plain english*.