From 4a67a7ff7ce4dcf4a04dbb607a96ec155c414b81 Mon Sep 17 00:00:00 2001 From: F1xGOD <105874129+F1xGOD@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:29:04 -0500 Subject: [PATCH] Update password.js --- password.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/password.js b/password.js index 977b43c4..0c05a689 100644 --- a/password.js +++ b/password.js @@ -20,6 +20,12 @@ function getCookie(cname) { } return ""; } +function setCookie(cname,cvalue,exdays) { + const d = new Date(); + d.setTime(d.getTime() + (exdays*24*60*60*1000)); + let expires = "expires=" + d.toUTCString(); + document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; +} function ReplaceContent(NC) { document.open(); @@ -27,6 +33,7 @@ function ReplaceContent(NC) { document.close(); } function startCheck(){ + if(JSON.stringify(actdata)=="{\"status\":\"EMERGENCY\"}"){ window.location.replace(`${host}/block/block?spoof=${currentUrl}`) }else{if(JSON.stringify(actdata)=="{\"status\":\"NOTFOUND\"}") { @@ -36,12 +43,7 @@ if(JSON.stringify(actdata)=="{\"status\":\"EMERGENCY\"}"){ const currentUrl = window.location.href; var pagecontent = `` -function setCookie(cname,cvalue,exdays) { - const d = new Date(); - d.setTime(d.getTime() + (exdays*24*60*60*1000)); - let expires = "expires=" + d.toUTCString(); - document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; - } + var execute=false function checkREADY(){ if(JSON.stringify(actdata)=="{}"){