Last active
August 29, 2015 14:01
-
-
Save tranch/58a5865ee88b0fe21190 to your computer and use it in GitHub Desktop.
切换开发模式和生产模式的域名
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// javascript:(function(l){var f=function(u,a,b){return u.indexOf(a)?u.replace(a,b):f(u,b,a)};l.herf=f(l.href,'.com','.dev')})(location); | |
(function(l) { | |
var f = function (u, a, b) { | |
return u.indexOf(a) ? u.replace(a, b) : f(u, b, a); | |
}; | |
l.href = f(l.href, '.dev', '.com'); | |
})(location); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment