In firefox, right click on the bookmark toolbar. Then select "New Bookmark"
then enter this code into the "Location" textbox:
javascript:d1='example.com';d2='localhost';loc=window.location.toString();if(loc.match(d1)){window.location=loc.replace(d1,d2);}else%20if(loc.match(d2)){window.location=loc.replace(d2,d1);}
replace 'localhost' with your dev server domain, and replace 'example.com' with your production server domain.
When you click on this bookmarklet, it will replace 'example.com' with 'localhost' and/or vise versa. It is handy for switching back and forth between your site's development server and production server