Skip to content

Instantly share code, notes, and snippets.

View secrethackerman's full-sized avatar

secrethackerman

View GitHub Profile
@secrethackerman
secrethackerman / jLoader.js
Last active September 28, 2025 01:39
that one options script
(function(window){
// safe btoa for Unicode strings
function safeBtoa(str){
return btoa(unescape(encodeURIComponent(str)));
}
// jLoad: accept string or object, open example.com/?q=BASE64
function jLoad(content){
try{
const s = typeof content === 'string' ? content : JSON.stringify(content);