-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
79 lines (74 loc) · 2.53 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
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<div id="container">
<div class="header">
<div class="input-group primary">
<input type="text" id="text" placeholder="Want answers?" />
<button id="answer">Answer</button>
<button id="summarize">Summary</button>
</div>
<div class="checkbox-group">
<div class="checkbox-container">
<input type="checkbox" id="continue" />
<label
for="continue"
data-hover-info="Continue last conversation from the same URL"
>Continue conversation</label
>
</div>
</div>
<div id="buttons" class="flexi">
</div>
</div>
<!-- It is stupid, but it works -->
<details class="closer">
<summary>History browser</summary>
<div class="mini">
<button id="prev"><</button>
<button id="next">></button>
<a id="qurl"></a>
<br />
<b id="question"></b>
</div>
</details>
<div id="output">
<div>
<h2>Yaq</h2>
<p>Summarize or answer questions about any webpage.</p>
</div>
<div>
<h4>Use cases:</h4>
<ul>
<li>Summarize blogs or news articles</li>
<li>Answer questions about product pages or YouTube videos</li>
<li>Inquire about GitHub issues or Linear tickets</li>
<li>Ask about currently open files in GitHub</li>
<li>Get assistance in reviewing GitHub PRs</li>
</ul>
<h4>Shortcuts:</h4>
<ul>
<li><kbd>Enter</kbd> to answer</li>
<li><kbd>Shift</kbd> + <kbd>Enter</kbd> to summarize</li>
<li><kbd>Ctrl/Cmd</kbd> + <kbd>Shift</kbd> + <kbd>M</kbd> to open popup</li>
</ul>
<h4>Tips:</h4>
<ul>
<li>Customize buttons in plugin settings</li>
<li>Use <kbd>Ctrl</kbd> + number to trigger buttons</li>
<li>Experiment with different prompts</li>
<li>Use 'Continue conversation' for follow-ups</li>
<li>Select specific text for focused answers</li>
<li>YouTube responses use video subtitles</li>
<li>Browse history with 'History browser'</li>
</ul>
</div>
</div>
<button id="copy">Copy response</button>
<script src="popup.js"></script>
<script src="showdown.min.js"></script>
</body>
</html>