override annoying userid popup
minor style tweaks added overrides.js manifest updated
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user