jfsaliba / Act-On - Minor UI Tweaks for better usability

// ==UserScript==
// @name         Act-On - Minor UI Tweaks for better usability
// @namespace    https://openuserjs.org/users/jfsaliba
// @version      1.1
// @description  Changes some main nav labels to something a bit more intuitive 
// @author       James Saliba
// @homepageURL  https://github.com/jfsaliba
// @license      Attribution-ShareAlike 4.0 International (CC BY-SA 4.0); http://creativecommons.org/licenses/by-sa/4.0/
// @match        http://*.actonsoftware.com/acton/ng-ui/
// @grant        none
// ==/UserScript==


var start_prettifyUI = function() {
    if($('nav li[title="Outbound"] > a > span.menu-item-parent > span').is(':visible')){
        if($('nav li[title="Outbound"] > a > span.menu-item-parent > span').length > 0) {
            $('nav li[title="Outbound"] > a > span.menu-item-parent > span').text('E-mail');
        }

        if($('nav li[title="Inbound"] > a > span.menu-item-parent > span').length > 0) {
            $('nav li[title="Inbound"] > a > span.menu-item-parent > span').text('Website');
        }
    } else {
        setTimeout(start_prettifyUI,250);
    }
}

start_prettifyUI();