Skip to content
Snippets Groups Projects
Commit 690dbcc2 authored by Jan Seipel's avatar Jan Seipel
Browse files

dev-branch created, few comments added

parent 75ecdd9a
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// @name test-ap-ux-improver // @name test-ap-ux-improver
// @namespace https://test-anfragen-pool.swrapp.net/* // @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 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 // @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() { ...@@ -49,25 +49,21 @@ window.addEventListener('load', function() {
// im neuen Fenster öffnen // im neuen Fenster öffnen
document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank") document.querySelector("#ToolBar li.PhoneTicket > a").setAttribute("target","_blank")
// Einhorn hinter Lorenz' Namen // automatischer Reload nach x Sekunden
const lorenz = [...document.querySelectorAll("div[title='Lorenz Bockisch']")] console.log("repo")
lorenz.map((e)=>e.innerText += " 🦄")
console.log("works right now")
if (URL.includes("AgentDashboard")) { if (URL.includes("AgentDashboard")) {
setInterval(function(){ setInterval(function(){
if ( if ( // stoppt autom. Reload, wenn bestimmte Dialogfenster geöffnet sind
document.querySelectorAll("#Overlay").length === 0 && document.querySelectorAll("#Overlay").length === 0 &&
![...document.querySelectorAll("div[id*='setting']")].map(d=>d.style.display).includes("block") && ![...document.querySelectorAll("div[id*='setting']")].map(d=>d.style.display).includes("block") &&
document.querySelectorAll("div[class*='SettingsWidget Expanded']").length === 0 document.querySelectorAll("div[class*='SettingsWidget Expanded']").length === 0
) { ) {
window.location.reload(1); window.location.reload(1);
console.log("reloaded") console.log("reloaded") //
} else { } else {
console.log("overlay now detected") console.log("overlay now detected")
} }
}, 1000*60); }, 1000*120); // hier den Sekundenwert einstellen
} }
}, false); }, false);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment