From 96b45cf2b23aabb37d3cbe97b985ea8cf1dc2ec7 Mon Sep 17 00:00:00 2001 From: luxick Date: Mon, 14 Apr 2025 15:32:34 +0200 Subject: [PATCH] Update esp-fixes.user.js Improve Errror Repost Details document title --- esp-fixes.user.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/esp-fixes.user.js b/esp-fixes.user.js index 318e19c..e5fd1fe 100644 --- a/esp-fixes.user.js +++ b/esp-fixes.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name ESP Fixes // @namespace https://esp.eas-cpq.de/ -// @version 1.10 +// @version 1.11 // @description Collection of fixes for the EAS Service Portal // @updateURL https://raw.githubusercontent.com/luxick/scripts/master/esp-fixes.user.js // @downloadURL https://raw.githubusercontent.com/luxick/scripts/master/esp-fixes.user.js @@ -66,7 +66,14 @@ function updateTitle(){ if (generalHeader){ document.title = "ESP " + generalHeader.innerText; } - document.title = document.title.replace("Word Editor - TaskDescription - ", "Text ") + + let errorSubHeader = document.getElementById("SubHeaderLabel"); + let numberText = errorSubHeader.textContent.substring(27); + if (numberText.startswith('E')) { + document.title = numberText; + } + + document.title = document.title.replace("Word Editor - TaskDescription - ", "Text ") } // No more ViewState Errors. Horrible, Horrible Hack