pbnj

storyseedling.com

// copy from https://www.reddit.com/r/webdev/comments/1gvs8it/how_to_copy_text_from_this_site_pls/

const mapping = {
    "⽂": "A", "⽃": "B", "⽄": "C", "⽅": "D", "⽆": "E", "⽇": "F",
    "⽈": "G", "⽉": "H", "⽊": "I", "⽋": "J", "⽌": "K", "⽍": "L",
    "⽎": "M", "⽏": "N", "⽐": "O", "⽑": "P", "⽒": "Q", "⽓": "R",
    "⽔": "S", "⽕": "T", "⽖": "U", "⽗": "V", "⽘": "W", "⽙": "X",
    "⽚": "Y", "⽛": "Z", "⽜": "a", "⽝": "b", "⽞": "c", "⽟": "d",
    "⽠": "e", "⽡": "f", "⽢": "g", "⽣": "h", "⽤": "i", "⽥": "j",
    "⽦": "k", "⽧": "l", "⽨": "m", "⽩": "n", "⽪": "o", "⽫": "p",
    "⽬": "q", "⽭": "r", "⽮": "s", "⽯": "t", "⽰": "u", "⽱": "v",
    "⽲": "w", "⽳": "x", "⽴": "y", "⽵": "z"
};


const decodeText = (text) =>
    text.split("").map(char => mapping[char] || char).join("");

// Find and decode all text nodes on the page
const decodePage = () => {
    const elements = document.body.querySelectorAll("*");
    elements.forEach(el => {
        if (el.childNodes.length) {
            el.childNodes.forEach(node => {
                if (node.nodeType === Node.TEXT_NODE) {
                    const decoded = decodeText(node.textContent);
                    if (decoded !== node.textContent) {
                        console.log("Decoded:", decoded);
                        node.textContent = decoded;
                    }
                }
            });
        }
    });
};


decodePage();