-
Notifications
You must be signed in to change notification settings - Fork 13
/
cloakinnewtab.js
31 lines (23 loc) · 1012 Bytes
/
cloakinnewtab.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(function () {
var url = "https://blobby-boi.github.io/BlobeBM/main.html";
// Open a new about:blank window
var win = window.open();
// Set the icon for the window
win.document.head.innerHTML += '<link rel="icon" href="lexialogo.png" type="image/png">';
// Set the title of the window
win.document.head.innerHTML += '<title>Home - PowerUp</title>';
// Create an iframe
var iframe = win.document.createElement('iframe');
// Set styles for the iframe
iframe.style = "position:fixed;width:100vw;height:100vh;top:0px;left:0px;right:0px;bottom:0px;z-index:2147483647;background-color:white;border:none;";
// Check and assign the URL to the iframe
if (url.includes('https://') || url.includes("http://")) {
iframe.src = url;
} else {
iframe.src = "https://" + url;
}
// Append the iframe to the body of the window
win.document.body.appendChild(iframe);
})();
// Redirect to google
window.location.href = "https://google.com";