Mail.com show login dialog automatically

Clicks the login dialog open automatically

As of 2018-09-18. See the latest version.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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)){