ConnectMePlease

click for me

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 or Violentmonkey 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      ConnectMePlease
// @namespace https://greasyfork.org/users/4785
// @author    nil
// @version   0.1
// @grant     none
// @description click for me
// @include  https://webmail*.orange.fr/webmail/fr_FR/continue.html*
// @grant    none
// ==/UserScript==

(function launcher() {
  function myinit() {
   var mylinks = [].slice.call(document.links);
   //console.log(mylinks.length);
   //alert(mylinks.length);
   var mylink = mylinks.filter ((a) =>  a.parentNode.hasAttribute("id") && "onglet-inbox" == a.parentNode.id);
   if (1 != mylink.length) {
     //console.log("SLT: lien non trouvé, page changée?");
     alert(123);
     return;
   }
   mylink = mylink[0];
   console.log(mylink);
   //console.log(mylink);

   //console.log("clicking!!??");
   mylink.click();
  }
  //console.log("coucou");
  window.addEventListener("DOMContentLoaded", myinit);
})();