ConnectMePlease

click for me

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

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 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      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);
})();