From ed13c4e6fe062b965529e7f8dc89f96501165ff6 Mon Sep 17 00:00:00 2001 From: szialajoscosplay <70654182+k3rielit@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:24:02 +0200 Subject: [PATCH] added rdmt.user.js --- README.md | 1 + redmenta/README.md | 10 ++++++++++ redmenta/rdmt.user.js | 29 +++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 redmenta/README.md create mode 100644 redmenta/rdmt.user.js diff --git a/README.md b/README.md index 0534499..52d22f8 100644 --- a/README.md +++ b/README.md @@ -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)] | diff --git a/redmenta/README.md b/redmenta/README.md new file mode 100644 index 0000000..807d624 --- /dev/null +++ b/redmenta/README.md @@ -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) diff --git a/redmenta/rdmt.user.js b/redmenta/rdmt.user.js new file mode 100644 index 0000000..a89ea2f --- /dev/null +++ b/redmenta/rdmt.user.js @@ -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); +})(); \ No newline at end of file