Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name FMHY Decoder
- // @namespace http://tampermonkey.net/
- // @version 1.0
- // @description Fixed decoder for Base64 section on FMHY
- // @author FMHY (Modder: USLTD)
- // @match https://fmhy.net/base64*
- // @match https://fmhy.pages.dev/base64*
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function () {
- 'use strict';
- // const base64Regex = /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{20,})$/g
- // Must set an interval, otherwise the content that is lazy loaded (e.g. loaded on scrolling) will not get decoded
- setInterval(() => {
- const pTags = document.querySelectorAll('p > button.base64 > code')
- pTags.forEach(function(pTag) {
- pTag.innerText = atob(pTag.innerText);
- })
- }, 500)
- })();