-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
148 lines (142 loc) · 3.87 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>YouTube Transcript Copier</title>
<style>
body {
width: 300px;
padding: 16px;
font-family: 'Roboto', sans-serif;
}
.header {
font-size: 16px;
font-weight: 500;
margin-bottom: 16px;
color: #030303;
}
.option-container {
margin-bottom: 12px;
}
label {
display: flex;
align-items: center;
gap: 8px;
color: #030303;
font-size: 14px;
cursor: pointer;
}
input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
}
#status {
margin-top: 12px;
color: #2ba640;
font-size: 12px;
height: 16px;
}
select {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid #ccc;
margin-top: 4px;
font-size: 14px;
}
.language-container {
margin-top: 16px;
margin-bottom: 12px;
}
.prompt-type-container {
margin-top: 16px;
margin-bottom: 12px;
}
.split-options-container,
.model-container,
.char-limit-container {
margin-top: 16px;
margin-bottom: 12px;
}
input[type="number"] {
width: 100%;
padding: 8px;
border-radius: 4px;
border: 1px solid #ccc;
margin-top: 4px;
}
.hidden {
display: none;
}
</style>
</head>
<body>
<div class="header" data-i18n="extensionSettings">Extension Settings</div>
<div class="interface-language-container">
<label data-i18n="interfaceLanguage">
Interface Language
<select id="interfaceLanguage">
<option value="en">English</option>
<option value="pt">Português</option>
<option value="es">Español</option>
</select>
</label>
</div>
<div class="language-container">
<label data-i18n="promptLanguage">
Prompt Language
<select id="promptLanguage">
<option value="en">English</option>
<option value="pt">Português</option>
<option value="es">Español</option>
</select>
</label>
</div>
<div class="prompt-type-container">
<label data-i18n="promptType">
Prompt Type
<select id="promptType">
<option value="none" data-i18n="noPrompt">No Prompt</option>
<option value="general" data-i18n="generalSummary">General Summary</option>
<option value="detailed" data-i18n="detailedAnalysis">Detailed Analysis</option>
<option value="bullet" data-i18n="bulletPoints">Bullet Point Summary</option>
<option value="section" data-i18n="sectionSummary">Section-wise Summary</option>
</select>
</label>
</div>
<div class="split-options-container">
<label data-i18n="splitOptions">
Split Options
<select id="splitType">
<option value="auto" data-i18n="autoSplit">Auto-split for LLMs</option>
<option value="none" data-i18n="noSplit">No split</option>
</select>
</label>
</div>
<div id="modelContainer" class="model-container hidden">
<label data-i18n="llmModel">
LLM Model
<select id="llmModel">
<option value="gpt4" data-i18n="gpt4">GPT-4 (400k chars)</option>
<option value="gpt35" data-i18n="gpt35">GPT-3.5 (13k chars)</option>
<option value="custom" data-i18n="customLimitOption">Custom limit</option>
</select>
</label>
</div>
<div id="customLimitContainer" class="char-limit-container hidden">
<label data-i18n="characterLimit">
Character Limit
<input type="number" id="customCharLimit" min="1000" max="1000000" value="13000">
</label>
</div>
<div class="option-container">
<label>
<input type="checkbox" id="includeTimestamps">
<span data-i18n="includeTimestamps">Include timestamps in copied text</span>
</label>
</div>
<div id="status"></div>
<script src="popup.js"></script>
</body>
</html>