Update esp-fixes.user.js

Improve Errror Repost Details document title
This commit is contained in:
2025-04-14 15:32:34 +02:00
committed by GitHub
parent bc0606863d
commit 96b45cf2b2

View File

@@ -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,6 +66,13 @@ function updateTitle(){
if (generalHeader){
document.title = "ESP " + generalHeader.innerText;
}
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 ")
}