var myCloud = { windowLocation: undefined ,onLoad: function() { myCloud.removeStartStep('personalFile', '1'); myCloud.removeStartStep('jobAuction', '20'); myCloud.removeStartStep('jobFleetManagement', '1000'); } ,removeStartStep: function(processname, startstep) { if (!document.getElementById('jr-new-incidents-content')) { return; } var a = document.getElementsByClassName("jr-new-incidents-content-item-link"), i, aLength = a.length; for (i = 0; i < aLength; i++) { if ( a[i].getAttribute('onclick').indexOf( processname) !== -1 && a[i].getAttribute('onclick').indexOf(startstep) !== -1 && a[i].classList.contains('jr-new-incidents-content-item-link') !== false ) { a[i].parentNode.remove(); i--; aLength = aLength - 1; } } } }; document.addEventListener('DOMContentLoaded', function() { myCloud.onLoad(); }); jQuery(document).on($JRApp.Events.PageDidChange, function() { myCloud.onLoad(); });