başka arayanlarında olucağını düşünerek buraya bırakıyorum ;

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 = "BURAYA_GIRIS_TOKENINIZI_YAZIN"; // Bu satıra giriş tokeninizi ekleyin

Login(token); // Kodu çağırın ve token ile çalıştırın