Mail.com show login dialog automatically

Clicks the login dialog open automatically

ของเมื่อวันที่ 18-09-2018 ดู เวอร์ชันล่าสุด

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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