USLTD

FMHY Decoder Fixxed

Dec 29th, 2023 (edited)
2,226
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.85 KB | Source Code | 0 0
  1. // ==UserScript==
  2. // @name         FMHY Decoder
  3. // @namespace    http://tampermonkey.net/
  4. // @version      1.0
  5. // @description  Fixed decoder for Base64 section on FMHY
  6. // @author       FMHY (Modder: USLTD)
  7. // @match        https://fmhy.net/base64*
  8. // @match        https://fmhy.pages.dev/base64*
  9. // @grant        none
  10. // @license      MIT
  11. // ==/UserScript==
  12.  
  13. (function () {
  14.     'use strict';
  15.     // const base64Regex = /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{20,})$/g
  16.  
  17.     // Must set an interval, otherwise the content that is lazy loaded (e.g. loaded on scrolling) will not get decoded
  18.     setInterval(() => {
  19.         const pTags = document.querySelectorAll('p > button.base64 > code')
  20.  
  21.         pTags.forEach(function(pTag) {
  22.             pTag.innerText = atob(pTag.innerText);
  23.         })
  24.     }, 500)
  25. })();
Tags: FMHY
Comments
Add Comment
Please, Sign In to add comment