Browse Source

Site updated: 2024-09-07 16:43:33

us_limour@limour.top 2 months ago
parent
commit
eca6cb0a09
1 changed files with 3 additions and 2 deletions
  1. 3 2
      theme-inject/timeliness.js

+ 3 - 2
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;
 }