From 298de2f0b880ca5988cd2175c1ca0df9c93faa43 Mon Sep 17 00:00:00 2001 From: Jan Seipel <Jan.Seipel@swr.de> Date: Wed, 12 Jun 2024 11:37:44 +0200 Subject: [PATCH] automatischer reload jede minute, hervorheben der deadline in ticket-zoom --- stylesheets/test-ap-style-ticketzoom.css | 4 ++++ test-ap-ux-imporver.user.js | 18 +++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/stylesheets/test-ap-style-ticketzoom.css b/stylesheets/test-ap-style-ticketzoom.css index 89ff533..ed255fc 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 d90619c..2c83b9e 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 -- GitLab