function load_script(o_script, callback) { let script = document.createElement('script'); script.type = o_script.type || 'text/javascript'; if(o_script.hasAttribute('src')) { script.src = o_script.src; script.onload = callback } script.innerHTML = o_script.innerHTML; document.head.appendChild(script); if (o_script.src === "") { // NOTE(Felix): it seems the onload is not called on script nodes that // define the js inline instead of through a src attribute, so for // them we call the callback manually and hope for the best. callback(); } } var next_script_index = 0 var deferred_scripts = [] function load_next_deferred_script() { if (next_script_index >= deferred_scripts.length) return load_script(deferred_scripts[next_script_index++], () => load_next_deferred_script()) } function decrypt_page() { var key_str = "" var html_name = window.location.pathname; var allcookies = document.cookie; cookiearray = allcookies.split(';'); for(var i=0; i" deferred_scripts = document.body.querySelectorAll('script'); load_next_deferred_script() } window.onload = decrypt_page