-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathglobal.js
32 lines (30 loc) · 1.39 KB
/
global.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
32
function clone(){
var url = window.location.href
var urlObj = new window.URL(window.location.href);
win = window.open();
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);
var script = win.document.createElement("script");
script.src = "https://3kh0.github.io/js/main.js";
win.document.body.appendChild(script);
window.location.replace("https://mail.google.com")
}
document.addEventListener('keydown', (e) => {
if (e.key.toLowerCase() === 'q' && e.ctrlKey) {
e.preventDefault();
clone()
}
else if (e.key.toLowerCase() === 'm' && e.ctrlKey) {
e.preventDefault();
window.location.href="/";
}
});