https://perchance.org/hash-links-plugin#edit

It’s stuck in this while loop. I’ve seen it happen a couple of times before; it blocks saving too. But normally refreshing/reloading does the trick. For whatever reason, here it always gets stuck no matter what, which means I can’t fix a bug in my code, which means that entire plugin and anything that imports it (all my generator pages) breaks entirely. Editing them, I can remove stuff to try to temp fix it, it seems to save, then I reload and the save hasn’t actually saved, and there’s nothing I can do about it 😬

while (!window[sadf5456])
  await new Promise(r=>window[lkjsfh83](r, 1000));

This is where it’s stuck. Something to do with waiting for “riot” to load? ARRRRGHGHG!

  • @wthit56OP
    link
    English
    13 months ago

    This is the larger function:

    			document.addEventListener("DOMContentLoaded", async(event)=>{
    				let sadf5456 = `r i  o t`['replace'](/ /g, "");
    				let lkjsfh83 = `s et Ti m e o ut`['replace'](/ /g, "");
    				let sdf435i3hkf = "document";
    				let a = window[sdf435i3hkf].body;
    				while (!window[sadf5456])
    					await new Promise(r=>window[lkjsfh83](r, 1000));
    				await new Promise(r=>window[lkjsfh83](r, 5000));
    				if (!window.da_Zz3qe33sEsZ1 || !window.hu_8urej4) {
    					a.innerHTML = window.mdded4sfef4dsedddse1d34344;
    					window[`successfulPag${""}Load`] = false;
    				}
    			}
    

    sadf5456 is the value “riot”.

    It’s now working–thank you!