Parcourir la source

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

us_limour@limour.top il y a 1 semaine
Parent
commit
eca6cb0a09
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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;
 }