Posted By

johndonahue on 12/08/09


Tagged

javascript server bookmarklet switcher


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

johndonahue
wirenaught


Server Switcher Bookmarklet


 / 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.

  1. 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);})()

Report this snippet  

You need to login to post a comment.