From 5eae3f1ce8e4bcde537e578d9197671d6e3badb1 Mon Sep 17 00:00:00 2001 From: MonkeyGG2 Date: Mon, 25 Sep 2023 16:12:50 -0400 Subject: [PATCH] removed annoying alerts --- js/index.js | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/js/index.js b/js/index.js index 6294ecd6..e33d1068 100644 --- a/js/index.js +++ b/js/index.js @@ -302,21 +302,20 @@ function makecloak(replaceUrl = preferences.cloakUrl) { var url = window.location.href; const win = window.open(); if (!win || win.closed || typeof win.closed == 'undefined') { - alert('Please allow Pop-Ups - By disabling popups, you allow this website to show up in your history.'); - } else { - win.document.body.style.margin = "0"; - win.document.body.style.height = "100vh"; - var iframe = win.document.createElement("iframe"); - iframe.style.border = "none"; - iframe.style.width = "100%"; - iframe.style.height = "100%"; - iframe.style.margin = "0"; - iframe.referrerpolicy = "no-referrer"; - iframe.allow = "fullscreen"; - iframe.src = url.toString(); - win.document.body.appendChild(iframe); - window.location.replace(replaceUrl) + return; } + win.document.body.style.margin = "0"; + win.document.body.style.height = "100vh"; + var iframe = win.document.createElement("iframe"); + iframe.style.border = "none"; + iframe.style.width = "100%"; + iframe.style.height = "100%"; + iframe.style.margin = "0"; + iframe.referrerpolicy = "no-referrer"; + iframe.allow = "fullscreen"; + iframe.src = url.toString(); + win.document.body.appendChild(iframe); + window.location.replace(replaceUrl) } }