Skip to content

Instantly share code, notes, and snippets.

@FlorianLatapie
Last active December 30, 2022 17:04
Show Gist options
  • Save FlorianLatapie/be766b7e08447bd093e2b172df4ef9d8 to your computer and use it in GitHub Desktop.
Save FlorianLatapie/be766b7e08447bd093e2b172df4ef9d8 to your computer and use it in GitHub Desktop.
Switch between .com and .dev by clicking on a bookmark with this code.
javascript:window.location.host=window.location.host.replace(/(com|dev)/,x=>"comdev".replace(x,""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment