ST QR Collection Importer

SillyTavern QuickReply preset collection importer.

< 腳本ST QR Collection Importer的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2025-01-26

EventListener failed to trigger for me. I fixed it by repeatedly checking if the rotating loading icon had disappeared yet (#load-spinner).
Here is the code I used.


//initial loop
var spinnerremoved = false;
var loop = 0;
(async function() {
while(!spinnerremoved){
var spinner = document.getElementById("load-spinner");
if(spinner == null){
spinnerremoved = true;
init();
console.log("finished");
}
await new Promise(r => setTimeout(r, 300));
loop++
console.log("awaited");
}
})();


Try replacing the eventlistener line with this if the button doesn't appear.

發表回覆

登入以回覆

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址