mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-20 04:01:06 -05:00
Merge branch 'master' of github.com:kaihendry/greptweet
This commit is contained in:
19
index.shtml
19
index.shtml
@@ -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>
|
||||
|
||||
|
||||
5
main.js
5
main.js
@@ -79,11 +79,6 @@ $(document).ready(function() {
|
||||
$("#source").html(footer);
|
||||
document.title = NAME;
|
||||
|
||||
document.cookie = 'u=' + NAME + '; expires=Thu, 2 Aug 2021 20:47:11 UTC; path=/';
|
||||
$("#home").click(function() {
|
||||
document.cookie = 'u=' + NAME + '; expires=Thu, 2 Aug 2001 20:47:11 UTC; path=/';
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
$(window).bind('hashchange', function() {
|
||||
|
||||
Reference in New Issue
Block a user