Skip to content

Commit

Permalink
added rdmt.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
k3rielit committed Aug 24, 2023
1 parent fef77d9 commit ed13c4e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Details about each script can be found inside their directory.
| [vectors](/vectors/) | [[previews](https://github.com/k3rielit/scripts/raw/main/vectors/vectorpreviews.user.js)] |
| [wizerme](/wizerme/) | [[solver](https://github.com/k3rielit/scripts/raw/main/wizerme/wizerme.user.js)] |
| [youtube](/youtube/) | [[swap](https://github.com/k3rielit/scripts/raw/main/youtube/swap.user.js)] |
| [redmenta](/redmenta/) | [[rdmt](https://github.com/k3rielit/scripts/raw/main/redmenta/rdmt.user.js)] |
10 changes: 10 additions & 0 deletions redmenta/README.md
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)
29 changes: 29 additions & 0 deletions redmenta/rdmt.user.js
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);
})();

0 comments on commit ed13c4e

Please sign in to comment.