Skip to the demo Yet another zachleat utility

URLswap

Generate a bookmarklet that cycles the current URL between origin, dev, and testing domains.

One "set" of interchangeable domains per line, comma-separated (e.g. localhost:8080, dev.example.com, example.com). Clicking the bookmarklet on a URL matching a domain in a set jumps to the next one in that set, keeping the path/query/hash. Entries without a scheme default to http:// for localhost/127.0.0.1 and https:// for everything else; write the scheme explicitly to override. A leading *. matches any subdomain and carries it across, so *.example.com, *.localhost:8080 sends dev.example.com to dev.localhost:8080. Exact entries always win over wildcards.

URLswap ← drag this to your bookmarks bar