Log download links and current website URL with hotkeys for displaying and deleting logs
DownloadTracker is a user script that logs information about downloads, including the current URL, download URL, and any redirect URLs encountered during the download process. It stores this information in the browser's local storage and provides hotkey shortcuts to display, clear, or save the log to the user's PC.
Ctrl + Alt + 5: Display the download logAlt + 5: Clear the download log<a> tags with an href attribute).fetch API with the HEAD method to capture redirect URLs.GM_setValue function provided by the user script manager.MutationObserver is used to handle dynamically added download links and attach event listeners to them.keydown event listener.Note: This script is designed to work with user script manager extensions and may not function correctly if used in a different context.