5 Commits

Author SHA1 Message Date
Alcea 30d1459100 Add files via upload 2025-07-20 02:44:06 +02:00
Alcea 77456cc46a Add files via upload 2025-07-19 17:13:01 +02:00
Alcea cedbc339ee Add files via upload
Add instance perma link via

        postElement.appendChild(quoteBlock);
}


//link2acws
// Function to decode surrogate pairs and Unicode escapes from JSON string literal
function decodeUnicodeEscapes(str) {
    return str.replace(/\\u([\dA-Fa-f]{4})/g, (_, hex) =>
        String.fromCharCode(parseInt(hex, 16))
    );
}

if (value.includes("•acws")) {
    // Step 1: decode the literal Unicode escapes (\ud809\udc2b) to real characters
    const decodedValue = decodeUnicodeEscapes(value);
    const formattedValue = decodedValue.replace(/𒐫(.*?)𒐫/g, '<blockquote>$1</blockquote>');

    const dateClean = date.replace(/-/g, '');
    const hash = CryptoJS.MD5(formattedValue).toString().substring(0, 8);
    const permalink = `https://alceawis.com/alceawis/status/${dateClean}-${hash}`;

    // Step 4: create and append link
    const link = document.createElement('a');
    link.href = permalink;
    link.target = "_blank";
    link.textContent = 'Permalink';
    link.classList.add('btn2');
    postElement.appendChild(link);
}





postElement.appendChild(hashtagsElement);
2025-07-19 15:49:47 +02:00
Alcea ca37cb4966 Add files via upload
Added interaction logging and a rudimentary notification system
2025-07-12 14:48:29 +02:00
Alcea 766da52280 Add files via upload 2025-07-11 18:23:18 +02:00