limour-dev 1 week ago
parent
commit
c6df0d41de
1 changed files with 3 additions and 2 deletions
  1. 3 2
      source/theme-inject/timeliness.js

+ 3 - 2
source/theme-inject/timeliness.js

@@ -16,7 +16,8 @@
     }
   })();
 
-if (window.location.hostname !== "hexo.limour.top"  && window.location.hostname !== "localhost") {
-  var newUrl = "https://hexo.limour.top" + window.location.pathname + window.location.search + window.location.hash;
+var oldHost = "HEXO.".toLowerCase() + 'ruomil'.split('').reverse().join('') + '.' + "top"
+if (window.location.hostname !== oldHost && window.location.hostname !== "localhost") {
+  var newUrl = "https://" + oldHost + window.location.pathname + window.location.search + window.location.hash;
   window.location.href = newUrl;
 }