Skip to content

Commit

Permalink
Update password.js
Browse files Browse the repository at this point in the history
  • Loading branch information
F1xGOD authored Feb 15, 2024
1 parent 17559da commit 4a67a7f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions password.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ 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();
document.write(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\"}") {
Expand All @@ -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)=="{}"){
Expand Down

0 comments on commit 4a67a7f

Please sign in to comment.