Mail.com show login dialog automatically

Clicks the login dialog open automatically

18.09.2018 itibariyledir. En son verisyonu görün.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

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