diff --git a/anfragen-pool-ux-imporver.user.js b/anfragen-pool-ux-imporver.user.js index 41173c498f06f1986426bccc9533c904bc0bc236..a2ee5b5e329f747cccd02ff911177d997d7d32a9 100644 --- a/anfragen-pool-ux-imporver.user.js +++ b/anfragen-pool-ux-imporver.user.js @@ -2,7 +2,7 @@ // @name test-ap-ux-improver // @namespace https://test-anfragen-pool.swrapp.net/* -// @version 2024-06-13_08-58 +// @version 2024-06-26_14-27 // @resource DASHBOARD_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-dashboard.css // @resource TICKETZOOM_CSS https://gitlab.ard.de/Jan.Seipel/test-ap-ux-improver/-/raw/main/stylesheets/test-ap-style-ticketzoom.css @@ -49,25 +49,21 @@ window.addEventListener('load', function() { // im neuen Fenster öffnen document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank") - // Einhorn hinter Lorenz' Namen - const lorenz = [...document.querySelectorAll("div[title='Lorenz Bockisch']")] - lorenz.map((e)=>e.innerText += " 🦄") - - console.log("works right now") + // automatischer Reload nach x Sekunden + console.log("repo") if (URL.includes("AgentDashboard")) { setInterval(function(){ - if ( + if ( // stoppt autom. Reload, wenn bestimmte Dialogfenster geöffnet sind document.querySelectorAll("#Overlay").length === 0 && ![...document.querySelectorAll("div[id*='setting']")].map(d=>d.style.display).includes("block") && document.querySelectorAll("div[class*='SettingsWidget Expanded']").length === 0 ) { window.location.reload(1); - console.log("reloaded") + console.log("reloaded") // } else { console.log("overlay now detected") } - }, 1000*60); + }, 1000*120); // hier den Sekundenwert einstellen } - }, false); \ No newline at end of file