Mail.com show login dialog automatically

Clicks the login dialog open automatically

Verze ze dne 18. 09. 2018. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

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