/ Published in: JavaScript
URL: http://hacklite.com/2009/12/server-switching-bookmarklet/
If you use the Server Switcher Plugin for Firefox, here’s a simple little bookmarklet to switch from your development environment to production on other browsers.
Expand |
Embed | Plain Text
javascript:(function(){var d='localhost';var p='mydomain.com';var s=document.domain.indexOf(d)!=-1?p:document.domain.indexOf(p)!=-1?d:0;if(s)location.href=document.location.toString().replace(document.domain,s);})()
You need to login to post a comment.
