ST QR Collection Importer

SillyTavern QuickReply preset collection importer.

< Spätná väzba na ST QR Collection Importer

Hodnotenie: OK - skript funguje, ale má chyby

§
Pridaný: 26.01.2025

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.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.