标题: [网页插件]加密通讯 仅供技术学习,请勿使用在虎绿林
时间: 2022-06-29发布,2022-07-20修改
<script src="https://hu60.cn/q.php/api.webplug-file.9977_public_jiami.js"></script>
『回复列表(37|隐藏机器人聊天)』
@残缘,@HW,@罐子,虎绿林官方内容解密扩展已实现对内容自动解密。祝大家玩得开心
// 内容解密扩展
// https://hu60.cn/q.php/bbs.topic.103403.html
$(document).ready(function () {
    function blankDecrypt(str) {
        var list = str.replace(/[^\u200B-\u200D]/g, '')
            .replace(/\u200C/g, '0')
            .replace(/\u200D/g, '1')
            .split('\u200B');
        for(var i=0; i<list.length; i++) {
             var asciiCode = parseInt(list[i], 2);
             list[i] = String.fromCharCode(asciiCode);
        }
        return list.join('');
    }
    document.querySelectorAll('.user-content').forEach(x => {
        if (/[\u200B-\u200D]/.test(x.innerText)) {
            var str = blankDecrypt(x.innerText);
            if (str.length > 0) {
                $(x).append(document.createTextNode('[' + str + ']'));
            }
        }
    });
});