Decode base64-encoded links in some pastebins and make URLs clickable
This userscript automatically detects and decodes Base64-encoded links found on popular pastebin and text-sharing sites. It is specifically designed to streamline the browsing experience for the FMHY community and general users who frequently encounter encoded URLs. By converting obfuscated strings back into clickable hyperlinks, it eliminates the need for manual copying and external decoding tools.
The script operates across several major platforms, including Rentry, Pastebin, and multiple PrivateBin instances such as Disroot and Textbin. It features a lightweight engine that scans the page content for valid Base64 patterns starting with common URL markers like "aHR0" (the encoded form of "http"). Once identified, the script decodes the string, sanitizes the output to prevent malicious script execution, and injects a live link directly into the webpage's interface.
Built with a focus on performance and security, the script uses a MutationObserver to ensure that content loaded dynamically or via AJAX is processed immediately without requiring a page refresh. It maintains the original styling of the host site while adding functionality, such as support for multi-line lists and automatic formatting of decoded results into clean, clickable HTML anchors.