-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathaboutblank.js
27 lines (26 loc) · 1018 Bytes
/
aboutblank.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
function openAboutBlank() {
setTimeout(function() {
var links = document.querySelectorAll('a');
links.forEach(function(link) {
link.onclick = function(event) {
event.preventDefault();
var win = window.open();
var iframe = win.document.createElement('iframe');
iframe.style.position = "fixed";
iframe.style.top = "0";
iframe.style.left = "0";
iframe.style.bottom = "0";
iframe.style.right = "0";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.border = "none";
iframe.style.margin = "0";
iframe.style.padding = "0";
iframe.style.overflow = "hidden";
iframe.style.zIndex = "999999";
iframe.src = link.href;
win.document.body.appendChild(iframe);
};
});
}, 50);
}