removing redirection to userpage via cookie

This commit is contained in:
Emmanuel Pelletier
2014-04-05 11:16:57 +02:00
parent 745d5b774c
commit f9ca04ebce

View File

@@ -8,25 +8,6 @@
<meta name="description" content="Download and search your tweets - no password login required!">
<link rel="stylesheet" href="/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="/bootstrap/css/bootstrap-theme.min.css">
<script>
function getCookie( oName ) {
var splitcookie = document.cookie.split( "; " ), x, cookiepair;
for( x = 0; x < splitcookie.length; x = x + 1 ) {
cookiepair = splitcookie[x].split( "=" );
if( cookiepair[0] === encodeURIComponent( oName ) ) {
if( cookiepair[1] ) {
return decodeURIComponent( cookiepair[1] );
} else {
return '';
}
}
}
return null;
}
user = getCookie("u");
if (user) { window.location.replace("/u/" + user); }
</script>
</head>