Remove js redirect.

This commit is contained in:
Lizbeth Rika committed 2015-04-03 15:43:59 +01:00
1 parent 27ddbf5edc
commit ef89333787
1 file changed
-9
-9
View File
@@ -2,15 +2,6 @@ const censorChars = 'abcdefghijklmnopqrstuvwxyz';
var animating = false;
$(function() {
var location = document.location;
var ignoreRegex = /(?:(?:http:\/\/localhost\/xampp\/mod\/Botania)|(?:http:\/\/(?:www\.)?botaniamod.net))(\/.*)/;
var elseRegex = /.+(\/.*)$/;
if(elseRegex.test(location) && !ignoreRegex.test(location)) {
var elseMatch = elseRegex.exec(location);
document.location = 'http://botaniamod.net' + elseMatch[1];
}
setInterval(changeCensor, 100);
var hash = document.location.hash.substring(1);