Created
December 10, 2019 07:33
-
-
Save x43x61x69/90ce6b38c9354c8b402e79d7b89c94fe to your computer and use it in GitHub Desktop.
UPS Tracking Auto Expend & Percentage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// UPS Tracking Auto Expend & Percentage | |
// URL Pattern: ups.com/track | |
addEventListener("load", function() | |
{ | |
var observer = new MutationObserver(function(mutations, me) | |
{ | |
var details = document.getElementById("stApp_lblShipProgressTableViewDetailed"); | |
if (details) | |
{ | |
me.disconnect(); | |
document.getElementById("stApp_txtPackageStatus").innerText += " (" + document.getElementById("stApp_divProgressBarPercentage").style.width + ")"; | |
details.click(); | |
document.getElementById("stApp_progressTableContent").style.display = "block"; | |
return; | |
} | |
}); | |
observer.observe(document, | |
{ | |
childList: true, | |
subtree: true | |
}); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment