-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvoiceover-helper.js
149 lines (148 loc) · 3.75 KB
/
voiceover-helper.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
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
// ==Bookmarklet==
// @name VoiceOver Helper
// @author Joe Lanman
// @script https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// ==/Bookmarklet==
var $body = $('body');
$body.wrapInner('<div id="voiceover-helper-original-page"></div>')
var $originalPage = $('#voiceover-helper-original-page');
$originalPage.css({
'overflow': 'hidden',
'height': 0
});
$body.append(`
<div aria-hidden="true" id="voiceover-helper-guide">
<style>
#voiceover-helper-guide{
padding: 1em;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
background: #fff !important;
color: #111 !important;
font-size: 18px !important;
}
#voiceover-helper-guide h1,
#voiceover-helper-guide h2{
font-weight: bold !important;
margin: 0.5em 0 !important;
}
#voiceover-helper-guide table{
margin: 0.5em 0 !important;
}
.voiceover-helper-command{
width: 9em;
}
</style>
<h1>VoiceOver guide</h1>
<p>The default VoiceOver (VO) button is <strong>ctrl + alt</strong>.</p>
<table>
<tr>
<td class="voiceover-helper-command">
cmd + F5
</td>
<td class="voiceover-helper-help">
start or stop VoiceOver
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO + A
</td>
<td class="voiceover-helper-help">
start reading
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO
</td>
<td class="voiceover-helper-help">
stop reading
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO + Shift + ▼
</td>
<td class="voiceover-helper-help">
go into a section
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO + Shift + ▲
</td>
<td class="voiceover-helper-help">
exit a section
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO + ▶︎
</td>
<td class="voiceover-helper-help">
next
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
VO + ◀︎
</td>
<td class="voiceover-helper-help">
previous
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
Enter
</td>
<td class="voiceover-helper-help">
click a link or button
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
Space
</td>
<td class="voiceover-helper-help">
select a checkbox, radio or dropdown
</td>
</tr>
</table>
<h2>The rotor</h2>
<p>The rotor lets you navigate by element type, for example headings and links.</p>
<table>
<tr>
<td class="voiceover-helper-command">
VO + U
</td>
<td class="voiceover-helper-help">
open the rotor
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
◀︎ ▶︎
</td>
<td class="voiceover-helper-help">
switch between element types
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
▲ ▼
</td>
<td class="voiceover-helper-help">
select an element
</td>
</tr>
<tr>
<td class="voiceover-helper-command">
Space or Enter
</td>
<td class="voiceover-helper-help">
go to selected element
</td>
</tr>
</table>
</div>
`);