Greasy Fork is available in English.

web.de: Direkt zum Posteingang

Klickt den "E-Mail"-Button nach Login.

// ==UserScript==
// @name         web.de: Direkt zum Posteingang
// @namespace    johnny_english
// @version      2.5.1
// @description  Klickt den "E-Mail"-Button nach Login.
// @author       Johnny English, Graphen
// @match        https://navigator.web.de/*
// @match        https://bap.navigator.web.de/*
// @icon         https://img.web.de/v/web.ico
// @grant        none
// @noframes
// @run-at       document-start
// ==/UserScript==

// MIT-licence:
// Copyright (c) 2017 Johnny English


// parallel AJAX disallows plain match after "document-end" (equivalent
// document.onreadystatechange ... document.readyState === 'complete')
new MutationObserver(
  // Array, MutationObserver
  function( mutations, new_observer ){
    var thisMO = this;

    // there are 4+ iframes, each with its MO
    var tmr = window.setTimeout( function(){
      thisMO.disconnect();
    }, 2000 );

    // searching through mutations wasn't reliable for some reason
    var j, x = document.getElementsByTagName( "atl-menu-item" );
    for( j = 0; j < x.length; ++j ){
      if( x[j].hasAttribute( "data-item-name" ) &&
          x[j].getAttribute( "data-item-name" ) == "mail" ){
        // stop and dispose the particular timer for this MO
        window.clearTimeout( tmr );
        // click on Posteingang
        x[j].click();
        // stop and dispose this particular MO
        thisMO.disconnect();
        break;
      }
    }
  }
).observe( document, {
  childList: true,
  subtree: true
} );