Update lunajspatch.js

This commit is contained in:
恍兮惚兮 2024-03-17 02:09:28 +08:00
parent fdd429391a
commit 3f96087120

View File

@ -24,13 +24,14 @@ function Electronhook() {
clipboard.writeText(s);
return clipboard.readText();
}
if(tyrano.plugin.kag.tag.text.originshowMessage)return;
tyrano.plugin.kag.tag.text.originshowMessage=tyrano.plugin.kag.tag.text.showMessage;
tyrano.plugin.kag.tag.text.showMessage = function () {
arguments[0]=Electronsend(arguments[0]);
return tyrano.plugin.kag.tag.text.originshowMessage.apply(this, arguments);
if(tyrano.plugin.kag.tag.text.originstart)return;
tyrano.plugin.kag.tag.text.originstart=tyrano.plugin.kag.tag.text.start;
tyrano.plugin.kag.tag.text.start = function (pm) {
if (1 != this.kag.stat.is_script && 1 != this.kag.stat.is_html) {
pm.val=Electronsend(pm.val);
}
return this.originstart(pm)
}
}
function retryinject(times){
if(times==0)return;