diff --git a/stylesheets/test-ap-style-ticketzoom.css b/stylesheets/test-ap-style-ticketzoom.css index 89ff533d7c3ec8781e76056632fe78ea7dc9b81a..ed255fc3bf9cc4d88d698a1adec026677a6262cd 100644 --- a/stylesheets/test-ap-style-ticketzoom.css +++ b/stylesheets/test-ap-style-ticketzoom.css @@ -52,4 +52,8 @@ margin-left: 0.2em; padding: 0.4em 0.6em 0.2em 0.5em !important; display: inline-block; +} + +#Core_UI_AutogeneratedID_0 fieldset:last-child :nth-child(5) { + color: red; } \ No newline at end of file diff --git a/test-ap-ux-imporver.user.js b/test-ap-ux-imporver.user.js index d90619c65a3a65921984ed0a590b3b98f2838864..2c83b9e72092851224aa253f0bb889e7546464e2 100644 --- a/test-ap-ux-imporver.user.js +++ b/test-ap-ux-imporver.user.js @@ -2,7 +2,7 @@ // @name test-ap-ux-improver // @namespace https://test-anfragen-pool.swrapp.net/* -// @version 2024-05-07_15-46 +// @version 2024-06-12_11-34 // @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 @@ -52,5 +52,21 @@ window.addEventListener('load', function() { const lorenz = [...document.querySelectorAll("div[title='Lorenz Bockisch']")] lorenz.map((e)=>e.innerText += " 🦄") + console.log("works right now") + if (URL.includes("AgentDashboard")) { + setInterval(function(){ + if ( + 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") + } else { + console.log("overlay now detected") + } + }, 1000*60); + } + }, false); \ No newline at end of file