-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.html
156 lines (146 loc) · 3.77 KB
/
popup.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
height: 100%;
}
html {
min-width: 700px;
display: table;
margin: none;
}
body {
font-family: Arial, sans-serif;
padding: 10px;
color: #9b9b9b;
background-color: #212121;
}
p {
font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica,Apple Color Emoji,Arial,Segoe UI Emoji,Segoe UI Symbol;
font-size: 15px;
line-height: 22.5px;
color: #9b9b9b;
}
h1 {
margin-bottom: 15px;
font-family: ui-sans-serif,-apple-system,system-ui,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Helvetica,Apple Color Emoji,Arial,Segoe UI Emoji,Segoe UI Symbol;
color: #ffffff;
font-weight: 600;
text-align: center;
}
input[type="text"] {
width: 100%;
max-width: 48rem;
padding: 12px 20px;
margin: 8px 0;
color: #ffffff;
box-sizing: border-box;
border: 1px solid #2f2f2f;
border-radius: 26px;
background-color: #2f2f2f;
}
b {
color: #ffffff;
}
button {
background-color: #ffffff;
border: 1px solid #ffffff;
color: #000000;
padding: 12px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 25px auto;
margin-bottom: 0px;
cursor: pointer;
border-radius: 9999px;
display: block;
}
input[type="checkbox"] {
appearance: none;
background-color: #2f2f2f;
border-radius: 72px;
border-style: none;
flex-shrink: 0;
height: 20px;
margin: 0;
position: relative;
width: 30px;
}
input[type="checkbox"]::before {
bottom: -6px;
content: "";
left: -6px;
position: absolute;
right: -6px;
top: -6px;
}
input[type="checkbox"],
input[type="checkbox"]::after {
transition: all 100ms ease-out;
}
input[type="checkbox"]::after {
background-color: #fff;
border-radius: 50%;
content: "";
height: 14px;
left: 3px;
position: absolute;
top: 3px;
width: 14px;
}
input[type="checkbox"] {
cursor: default;
}
input[type="checkbox"]:hover {
background-color: #2f2f2f;
transition-duration: 0s;
}
input[type="checkbox"]:checked {
background-color: #10A37F;
}
input[type="checkbox"]:checked::after {
background-color: #fff;
left: 13px;
}
input[type="checkbox"]:checked:hover {
background-color: #10A37F !important;
transition-duration: 0s;
}
input[type="checkbox"]:checked:hover::after {
background-color: #fff;
left: 13px;
}
input[type="checkbox"]:focus:not(.focus-visible) {
outline: 0;
}
input[type="checkbox"] {
scale: 1.5;
margin-top: 20px;
margin-left: 8px;
}
label.text-center.tb-checkbox span {
margin-left: 10px;
vertical-align: top;
}
</style>
</head>
<body>
<h1>RightClickGPT Options</h1>
<p>Your custom prompt format must include<b> <prompt> </b>where you want the selected text to appear:</p>
<input type="text" id="promptFormat" placeholder='Ex: Explain <prompt>'>
<p>Current prompt format: <span id="currentPromptFormat"></span></p>
<br>
<p>Enter the chat ID for the OpenAI chat (works for GPT-4, find this ID in the URL):</p>
<input type="text" id="chatID" placeholder='Ex: a435cadd-b000-441f-b76c-900d9f441353'>
<p>Current chat ID: <span id="currentChatID"></span></p>
<br>
<p>Use existing tab if available:</p>
<input type="checkbox" id="focusExistingTab">
<br>
<button id="save">Save</button>
<script src="options.js"></script>
</body>
</html>