ab518bd281
minor style tweaks added overrides.js manifest updated
24 lines
675 B
JavaScript
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();
|