tesco radio - ez a dolog jo dolog
Creates an overlay with the BearerToken, UserId, and UserType values that ship with the document itself as body attributes (data-rdmt
, data-rdmt-id
, data-rdmt-type
), then get loaded into memory, and removed from the attribute list using javascript.
- Clear the stored token once the user logged out, or changed accounts
- Define API routes
- Intercept API calls (XHR, fetch)
- Waits for the body to be in the DOM (for too early injections)
- Stores the last known token in the userscript storage (for too late injections)
- Added a
sleep
and awaitForElement
function to mitigate too early injections - Added a
stringToElement
function that uses templates to turn a string into a Node