removed annoying alerts

This commit is contained in:
MonkeyGG2
2023-09-25 16:12:50 -04:00
parent 2205f5ae09
commit 5eae3f1ce8
+13 -14
View File
@@ -302,21 +302,20 @@ function makecloak(replaceUrl = preferences.cloakUrl) {
var url = window.location.href; var url = window.location.href;
const win = window.open(); const win = window.open();
if (!win || win.closed || typeof win.closed == 'undefined') { 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.'); return;
} 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)
} }
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)
} }
} }