servicenow - update ticket list without reloading the page

Costas

Administrator
Staff member
useful when the admin hides this option (exists by default)

JavaScript:
javascript:(function(){ document.querySelector(".banner-text.h5").style.cssText += 'color:red;background-color:yellow'; setInterval(function() { document.querySelector(".banner-text.h5").innerText = new Date().toLocaleTimeString('cz'); document.getElementById('gsft_main').contentWindow.location.reload(); }, 3 * ( 60 * 1000) ); document.getElementById('gsft_main').contentWindow.location.reload(); })();
 

Costas

Administrator
Staff member
clear unwanted replies on Activities tab
JavaScript:
javascript:(function(){ (function(d) { const matchReplies = ['external work notes', 'internal work notes', 'attachment uploaded', 'image uploaded']; [].forEach.call(d.querySelectorAll('li.h-card.h-card_md'), function(e) { let replyType = e.querySelector("span.sn-card-component-time>span").textContent.trim().toLowerCase(); if (!matchReplies.includes(replyType)) { e.style.display = 'none'; console.log(replyType); } }); }(document)); })();
 
Top