Update esp-fixes.user.js
Improve Errror Repost Details document title
This commit is contained in:
@@ -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 ")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user