diff --git a/config/dev.user.js b/config/dev.user.js index 4d9f2b4..6f5f6a7 100644 --- a/config/dev.user.js +++ b/config/dev.user.js @@ -5,11 +5,13 @@ // @author lifesinger@gmail.com // @source http://lifesinger.github.com/config/dev.user.js // @match file://localhost/Users/lifesinger/Sites/* -// @version 1.0.1 +// @version 1.0.2 // ==/UserScript== (function() { + var href = location.href - location.href = location.href.replace('file://localhost/Users/lifesinger/Sites/', 'http://localhost/~lifesinger/') - + if (href.indexOf('?file') === -1) { + location.href = href.replace('file://localhost/Users/lifesinger/Sites/', 'http://localhost/~lifesinger/') + } })() diff --git a/config/nogfw.pac b/config/nogfw.pac index 4998f5c..e14f677 100644 --- a/config/nogfw.pac +++ b/config/nogfw.pac @@ -8,7 +8,8 @@ var rules = [ ///(\w+\.){1,2}github\.com/, //'seajs.org', - 'mail.google.com', + 'google.com', +// 'github.com', 'dropbox.com', 'youtube', diff --git a/lab/2013/unique/test.html b/lab/2013/unique/test.html new file mode 100644 index 0000000..7dd5469 --- /dev/null +++ b/lab/2013/unique/test.html @@ -0,0 +1,76 @@ + + + + +unique + + + + + \ No newline at end of file