<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Protect JS Lib接口版(保护你的JS不被圈钱带神所利用)]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1626698475317-protect-logo.png" alt="Protect logo.png" class=" img-fluid img-markdown" /><br />
<strong>若想使用需要一定JS基础。</strong></p>
<p dir="auto">欢迎来到Protect JS Lib版本!<br />
作者:<br />
mumy： 重新制作，As丶One：最初版开发，Cookie：更新</p>
<p dir="auto"><strong>我该如何使用它?</strong><br />
将此解压到Liquidbounce/script目录里<br />
将你所需保护的JS添加以下内容</p>
<pre><code>function protect() {
    var label = {
        global: ["(全局关键词)"],
        hud: {
            text: ["(HUD的关键词)"]
        },
        title: {
            title: ["(标题的关键词)"]
        }
    };
    try {
        return (script.import("lib/protectFunction[simplified].js"), inspection(label));
    } catch (err) {
        return false;
    }
}
//如果检查到异常就返回false反之true

</code></pre>
<p dir="auto">Global为全局变量<br />
假如我要检测 <strong>内部</strong> 这俩字<br />
示例:</p>
<pre><code>function protect() {
    var label = {
        global: ["内部", "内", "部"],
        hud: {
            text: []
        },
        title: {
            title: []
        }
    };
    try {
        return (script.import("lib/protectFunction[simplified].js"), inspection(label));
    } catch (err) {
        return false;
    }
}
//如果检查到异常就返回false反之true

</code></pre>
<p dir="auto">整体JS示例展示:</p>
<pre><code>var scriptName = "AntiBotScript";
var scriptVersion = 1.0;
var scriptAuthor = "mumy &amp; Cookie";

var EntityUtils = Java.type('net.ccbluex.liquidbounce.utils.EntityUtils');

var AntiBotScript = new AntiBotScript();
var client;

function protect() {
    var label = {
        global: ["(全局关键词)"],
        hud: {
            text: ["(HUD的关键词)"]
        },
        title: {
            title: ["(标题的关键词)"]
        }
    };
    try {
        return (script.import("lib/protectFunction[simplified].js"), inspection(label));
    } catch (err) {
        return false;
    }
}
//如果检查到异常就返回false反之true

function AntiBotScript() {
    
    var flag = !protect();
	//声明一个变量来记录是否异常
    
    this.getName = function() {
        return "AntiBotScript";
    }
    
    this.getDescription = function() {    
        return "Example By mumy &amp; Cookie";
    }
    
    this.getCategory = function() {
        return "Misc";
    }
    
    this.getTag = function() {
        return "Custom";
    }
    
    this.onUpdate = function() {
        if (flag) {
            return;
			//如果异常将不执行
        }
        var list = mc.theWorld.loadedEntityList;
        for (var i in list) {
            var entity = list[i];
            if (EntityUtils.isSelected(entity, true)) {
                mc.theWorld.removeEntity(entity);
            }
        }
    }
}

function onLoad() {}

function onEnable() {
    client = moduleManager.registerModule(AntiBotScript);
}

function onDisable() {
    moduleManager.unregisterModule(client);
}
</code></pre>
<p dir="auto">Silence对接检测:</p>
<pre><code>function protect() {
    var label = {
        global: ["内部", "内", "部","夜","Silence","-1000","CoCoA"],
        hud: {
            text: ["X: [ %x% ] Y: [ %y% ] Z: [ %z% ]","Date: [ %date%-%time% ]"]
        },
        title: {
            title: ["Fix Teams and Animations"]
        }
    };
    try {
        return (script.import("lib/protectFunction[simplified].js"), inspection(label));
    } catch (err) {
        return false;
    }
}
</code></pre>
<p dir="auto">官方推荐检测:</p>
<pre><code>function protect() {
    var label = {
        global: ["AsFly2", "AsFly_", "HytFly", "内部", "群", "group", "ruanhe", "revel", "时", "分", "秒", "魔", "暴", "sense", "Launcher", "fanqie", "QQ", "xiaoda", "liquidcold", "rosalba", "liying", "LGY", "cherryhacker", "渣", "内", "Cynicism", "Nightsky", "甲", "妈", "血", "妖", "灵", "RMB", "Group", "Belphegor", "商", "实", "体", "费", "Alan", "QQ", "号", "群", "爆", "L配", "爹", "龟", "马", "杀妈", "vape"],
        hud: {
            text: ["内部","付费","钱","money"]
        },
        title: {
            title: []
        }
    };
    try {
        return (script.import("lib/protectFunction[simplified].js"), inspection(label));
    } catch (err) {
        return false;
    }
}

</code></pre>
<p dir="auto">此Lib包含什么检测?<br />
标题检测<br />
群号检测<br />
界面检测<br />
功能检测<br />
关键词检测<br />
<strong>.........</strong></p>
<p dir="auto"><strong>检测到的配置会有什么惩罚?</strong><br />
Protect JS当检测到违禁词时会让你的JS失效，从而导致他人无法使用</p>
<p dir="auto">下载:<br />
<a href="/assets/uploads/files/1626699011959-protect-lib.zip">Protect Lib.zip</a></p>
]]></description><link>https://forum.liquidbounce.net/topic/1688/protect-js-lib接口版-保护你的js不被圈钱带神所利用</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 18:17:58 GMT</lastBuildDate><atom:link href="https://forum.liquidbounce.net/topic/1688.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 21 Mar 2021 05:33:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Protect JS Lib接口版(保护你的JS不被圈钱带神所利用) on Sun, 16 Jan 2022 15:14:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/legend" aria-label="Profile: legend">@<bdi>legend</bdi></a><br />
<a href="https://en.wikipedia.org/wiki/Digital_rights_management" target="_blank" rel="noopener noreferrer nofollow ugc">DRM</a>什么时候成好东西了<br />
真想圈的怕不是一个<br />
<code>Fonts.font35.drawString</code></p>
<p dir="auto">btw<br />
挂zip头卖rar肉<br />
傻逼rar还得我去用bsdtar去解</p>
]]></description><link>https://forum.liquidbounce.net/post/27955</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/27955</guid><dc:creator><![CDATA[commandblock2]]></dc:creator><pubDate>Sun, 16 Jan 2022 15:14:25 GMT</pubDate></item><item><title><![CDATA[Reply to Protect JS Lib接口版(保护你的JS不被圈钱带神所利用) on Sun, 16 Jan 2022 14:41:31 GMT]]></title><description><![CDATA[<p dir="auto">很有精神！<br />
开源的js要是都有这玩意还怕某些大手子去搞？</p>
]]></description><link>https://forum.liquidbounce.net/post/27952</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/27952</guid><dc:creator><![CDATA[Legend]]></dc:creator><pubDate>Sun, 16 Jan 2022 14:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to Protect JS Lib接口版(保护你的JS不被圈钱带神所利用) on Sat, 31 Jul 2021 14:16:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cookiechinese" aria-label="Profile: cookiechinese">@<bdi>cookiechinese</bdi></a> 已更新</p>
]]></description><link>https://forum.liquidbounce.net/post/22513</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/22513</guid><dc:creator><![CDATA[CookieChinese]]></dc:creator><pubDate>Sat, 31 Jul 2021 14:16:45 GMT</pubDate></item><item><title><![CDATA[Reply to Protect JS Lib接口版(保护你的JS不被圈钱带神所利用) on Mon, 19 Jul 2021 13:39:24 GMT]]></title><description><![CDATA[<p dir="auto">支持支持支持支持支持支持支持支持支持支持</p>
]]></description><link>https://forum.liquidbounce.net/post/21434</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/21434</guid><dc:creator><![CDATA[ibook]]></dc:creator><pubDate>Mon, 19 Jul 2021 13:39:24 GMT</pubDate></item><item><title><![CDATA[Reply to Protect JS Lib接口版(保护你的JS不被圈钱带神所利用) on Thu, 15 Jul 2021 12:36:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cookiechinese" aria-label="Profile: cookiechinese">@<bdi>cookiechinese</bdi></a> 正在进行重写</p>
]]></description><link>https://forum.liquidbounce.net/post/21005</link><guid isPermaLink="true">https://forum.liquidbounce.net/post/21005</guid><dc:creator><![CDATA[CookieChinese]]></dc:creator><pubDate>Thu, 15 Jul 2021 12:36:00 GMT</pubDate></item></channel></rss>