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