-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# RDMT | ||
|
||
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. | ||
|
||
## Install | ||
|
||
1. Install the Tampermonkey extension. ([Link](https://www.tampermonkey.net)) | ||
2. [Install](https://github.com/k3rielit/scripts/raw/main/redmenta/rdmt.user.js) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// ==UserScript== | ||
// @name Redmenta BearerToken | ||
// @namespace com.k3rielit.redmenta | ||
// @version 1.0 | ||
// @description Tries to load the bearer token, then displays as an overlay. | ||
// @author k3rielit | ||
// @match *://redmenta.com/* | ||
// @icon https://www.google.com/s2/favicons?sz=64&domain=redmenta.com | ||
// @grant none | ||
// @run-at document-start | ||
// @updateURL https://github.com/k3rielit/scripts/raw/main/redmenta/rdmt.user.js | ||
// @downloadURL https://github.com/k3rielit/scripts/raw/main/redmenta/rdmt.user.js | ||
// ==/UserScript== | ||
|
||
(function() { | ||
'use strict'; | ||
// Load data before it gets removed | ||
const auth = { | ||
token: document.body.getAttribute('data-rdmt'), | ||
uid: document.body.getAttribute('data-rdmt-id'), | ||
utype: document.body.getAttribute('data-rdmt-type') | ||
}; | ||
console.log(auth); | ||
// Display it as an overlay | ||
const overlay = document.createElement('div'); | ||
overlay.innerText = JSON.stringify(auth); | ||
overlay.setAttribute('style','position: fixed; z-index: 999; left: 10px; bottom: 10px; font-weight: 700; color: white; background-color: rgb(255 83 22); border-radius: 20px; padding: 4px; border: 2px solid rgb(245 206 187); box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);'); | ||
document.body.appendChild(overlay); | ||
})(); |