-
Notifications
You must be signed in to change notification settings - Fork 1
/
popup.js
27 lines (23 loc) · 840 Bytes
/
popup.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
document.body.style.width = '300px';
document.body.style.height = '400px';
document.body.style.backgroundImage = "url('/images/GPT.png')";
document.body.style.backgroundRepeat = 'no-repeat';
document.body.style.backgroundSize = '300px 400px'
const button = document.createElement('button');
button.innerText = 'Send';
button.style.height = '40px';
const box = document.createElement('input');
box.style.width = '250px';
box.style.height = '40px';
box.placeholder = 'Message ChatGPT...';
document.body.appendChild(box);
document.body.appendChild(button);
button.addEventListener('click', () => {
setInterval(()=> {
const p = document.createElement('p')
p.innerHTML = "You are getting HACKED!"
p.style.textAlign = 'center';
document.body.appendChild(p)
}, 200)
console.log('button worked');
});