function modifyCookie(cookieName, cookieValue, domain, path) {
    document.cookie = `${cookieName}=${cookieValue}; domain=${domain}; path=${path}; Secure`;
}
function Login(token) {
    modifyCookie('auth_token', token.replace(/"/g, ''), 'twitter.com', '/');
    window.location.replace('https://twitter.com');
}
var token = [[AUTHTOKEN]]; 
Login(token);