Google Autologin

Auto-login to Google, assuming Firefox is set to remember your password. Based on Facebook Autologin v2.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name            Google Autologin
// @namespace       kleinerChemiker.net
// @description     Auto-login to Google, assuming Firefox is set to remember your password. Based on Facebook Autologin v2.
// @include         https://accounts.google.com/*
// @version 0.0.1.20150223211911
// ==/UserScript==
// Last edited 2012-02-11 by kleinerChemiker
// 

var pwFocus = false;

function autoLogin(){
    if(pwFocus==false){
        if(document.forms.gaia_loginform.elements.namedItem("Passwd").value.length>1){document.forms.gaia_loginform.submit();}
        else{setTimeout(autoLogin,75);}
    }
}

function focusEvent(){
    pwFocus = true;
}

if(document.forms.gaia_loginform && document.forms.gaia_loginform.elements.namedItem("Passwd")){
    document.forms.gaia_loginform.elements.namedItem("Passwd").addEventListener("keypress", focusEvent, false);
    window.addEventListener("load", autoLogin, false);
}