Skip to content

Instantly share code, notes, and snippets.

@infn8
Created November 11, 2014 16:22
Show Gist options
  • Save infn8/2c81f40d39b7c6c7c1ca to your computer and use it in GitHub Desktop.
Save infn8/2c81f40d39b7c6c7c1ca to your computer and use it in GitHub Desktop.
Bookmarklet to swap between whatever.com and whatever.dev
javascript:(function(){parts = location.host.split('.'); last = parts.pop(); replace = last == 'dev' ? 'com' : 'dev'; parts.push(replace); location.host= parts.join('.'); })();
@infn8
Copy link
Author

infn8 commented Nov 11, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment