Mail.com show login dialog automatically

Clicks the login dialog open automatically

Stan na 18-09-2018. Zobacz najnowsza wersja.

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        Mail.com show login dialog automatically
// @namespace   mail_com_show_login_box
// @description Clicks the login dialog open automatically
// @include     http://www.mail.com/int/
// @version     1
// @grant       none
// ==/UserScript==

var valid_id = new RegExp('^login-button$');
var page_links = document.getElementsByTagName('a');

for(x in page_links){
  var cur_link = page_links[x];
  var link_id = cur_link.id;
 
  if(valid_id.test(link_id)){
    cur_link.click();
  } 
}

//var valid_class = new RegExp('^button cta large$');
//  var cur_link = page_links[x];
//  var link_class = cur_link.className;
//  if(valid_class.test(link_class)){