-
Notifications
You must be signed in to change notification settings - Fork 10
/
iframe.js
36 lines (32 loc) · 1.15 KB
/
iframe.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
33
34
35
javascript:(function() {
var iframe = document.createElement('iframe');
iframe.setAttribute('src', 'https://gptchatly.com/');
iframe.style.position = 'fixed';
iframe.style.top = '50%';
iframe.style.left = '50%';
iframe.style.transform = 'translate(-50%, -50%)';
iframe.style.border = '8px solid Aquamarine';
iframe.style.width = '80%';
iframe.style.height = '80%';
iframe.style.zIndex = '9999';
var closeButton = document.createElement('button');
closeButton.style.position = 'fixed';
closeButton.style.top = '5px';
closeButton.style.right = '5px';
closeButton.style.fontSize = '20px';
closeButton.style.color = 'white';
closeButton.style.backgroundColor = 'Aquamarine';
closeButton.style.border = 'none';
closeButton.style.borderRadius = '50%';
closeButton.style.width = '30px';
closeButton.style.height = '30px';
closeButton.style.cursor = 'pointer';
closeButton.style.zIndex = '10000';
closeButton.addEventListener('click', function() {
iframe.remove();
closeButton.remove();
});
document.body.appendChild(iframe);
document.body.appendChild(closeButton);
alert('Made by Tacogamerman on github.')
})();