override annoying userid popup
minor style tweaks added overrides.js manifest updated
This commit is contained in:
@@ -1,22 +1,24 @@
|
||||
"use strict";
|
||||
|
||||
/*
|
||||
TODO float buttons on bottom of RO
|
||||
TODO float location entry on RO (sidebar?)
|
||||
TODO style individual buttons
|
||||
TODO options page
|
||||
- move parts list buttons top or bottom
|
||||
- color themes?
|
||||
TODO options page (set UID)
|
||||
TODO move parts list buttons top or bottom (form name='frmPartsSelection'), btnSave, btnCancel
|
||||
NOTE color themes?
|
||||
BUG close button on photo pages is styled along with the btnCancel
|
||||
HACK display tiny images next to parts list?
|
||||
NOTE display tiny images next to parts list?
|
||||
TODO shrink navbar/header/location on scroll
|
||||
TODO fancy button animations
|
||||
TODO choose file on upload window
|
||||
TODO insert a reset button into search form
|
||||
TODO style menubar and keep it sticky on the window
|
||||
TODO style/move the location scan to float with the RO
|
||||
TODO color bg to bin color
|
||||
*/
|
||||
|
||||
// temporarily override stupid alerts that happen randomly all day long
|
||||
//document.getElementById("txtTRG_User").value = "20539";
|
||||
|
||||
// Warranty Highlight
|
||||
const isWarranty = document.getElementById("chkWarrantee");
|
||||
if (isWarranty != null) {
|
||||
@@ -33,10 +35,18 @@ if (isWarranty != null) {
|
||||
}
|
||||
|
||||
// TODO highlight change case label if SN updated
|
||||
const newSN = document.getElementById("txtNewBoardSN"); // this is the new SN field
|
||||
const snWasUpdated = document.getElementById("chkCaseSNUpdate"); // this is the checkbox
|
||||
|
||||
// TODO color bg to bin color
|
||||
// if (newSN.length != null) {
|
||||
// newSN.addEventListener("change", updateSNBackground, false);
|
||||
// updateSNBackground();
|
||||
// }
|
||||
// function updateSNBackground() {
|
||||
// alert("test");
|
||||
// }
|
||||
|
||||
// TODO add current location to top of page somewhere
|
||||
// TODO add current location to a floating modal (or something)
|
||||
|
||||
// Notification system
|
||||
// TODO implement facebook-style notifications
|
||||
@@ -45,3 +55,12 @@ if (isWarranty != null) {
|
||||
// const notifCountStr = document.getElementById("lblTask").innerText;
|
||||
// const notifCount = parseInt(notifCountStr.split(" ")[2]); // Total task count
|
||||
// const notifCountNew = parseInt(notifCountStr.split(" ")[5].slice(1)); // New task count
|
||||
|
||||
// Code injection
|
||||
var s = document.createElement("script");
|
||||
s.src = chrome.runtime.getURL("overrides.js");
|
||||
(document.head || document.documentElement).appendChild(s);
|
||||
|
||||
s.onload = function () {
|
||||
this.remove();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user