override annoying userid popup

minor style tweaks
added overrides.js
manifest updated
This commit is contained in:
2023-04-28 12:57:18 -04:00
parent fe80210c8d
commit ab518bd281
4 changed files with 57 additions and 57 deletions
+23
View File
@@ -0,0 +1,23 @@
// 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();