-
Notifications
You must be signed in to change notification settings - Fork 508
/
index.html
51 lines (45 loc) · 1.28 KB
/
index.html
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>ChatGPT</title>
<link rel="stylesheet" href="index.css" />
</head>
<body class="myarrow">
<div class="page darwin">
<webview id="webview" src="https://chat.openai.com/chat" autosize="on" >
</webview>
</div>
<script>
const webview = document.getElementById('webview');
webview.addEventListener('dom-ready', function() {
// hide message below text input, sidebar, suggestions on new chat
webview.insertCSS(`
.text-xs.text-center {
opacity: 0;
height: 0;
margin-bottom: -10px;
}
.sticky,
.pointer-events-auto.flex.border-orange-500,
[class*="shared__Capabilities"] {
display: none !important;
}
[class*="shared__Wrapper"] {
align-items: center;
justify-content: center;
text-align: center;
margin-top: 15vh;
}
[class*="shared__Wrapper"] h3 {
margin-top: -40px;
font-size: 20px;
}
`)
const element = webview.executeJavaScript(`
document.querySelector("[class*='shared__Wrapper']").innerHTML += "<h3>Start by asking anything.</h3>"
`);
});
</script>
</body>
</html>