Files
ServiceHubPlus/overrides.js
T
cdanesi ab518bd281 override annoying userid popup
minor style tweaks
added overrides.js
manifest updated
2023-04-28 12:57:18 -04:00

24 lines
675 B
JavaScript

// Fix that annoying BS where the ID takes focus CONSTANTLY
console.log("Injection succeeded!");
function checkLoc() {
var sLoc = document.getElementById("txtTRG_Loc").value;
var sUsr = document.getElementById("txtTRG_User").value;
if (sLoc.length == 0) {
alert("You need to enter a location.");
document.all["txtTRG_Loc"].focus();
} else {
if (sUsr.length == 0) {
//alert("We suck at writing proper code.");
console.log("Override successful");
document.getElementById("txtTRG_User").value = "20539";
// document.querySelectorAll["txtTRG_User"].focus();
}
}
resetTimeout();
}
var bfTest = document.getElementById("txtTRG_Bin");
bfTest.onfocus();