Create redirect.js
This commit is contained in:
6
redirect.js
Normal file
6
redirect.js
Normal file
@@ -0,0 +1,6 @@
|
||||
if (window.location.hostname != document.currentScript.getAttribute('domain')){
|
||||
window.location.href = "http://" + document.currentScript.getAttribute('domain') + window.location.pathname;
|
||||
}
|
||||
else{
|
||||
console.log("Already Redirected");
|
||||
}
|
||||
Reference in New Issue
Block a user