-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.js
35 lines (30 loc) · 898 Bytes
/
content.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
var xRayElements = document.getElementsByClassName('xrayQuickView');
var overlayElements = document.getElementsByClassName('fkpovp9');
for (var i = 0; i < xRayElements.length; i++) {
var xRay = xRayElements[i];
if (xRay.style.display === 'none') {
xRay.style.display = 'block';
} else {
xRay.style.display = 'none';
}
}
for (var i = 0; i < overlayElements.length; i++) {
var overlay = overlayElements[i];
if (overlay.style.display === 'none') {
overlay.style.display = 'block';
} else {
overlay.style.display = 'none';
}
}
document.addEventListener('keydown', function(event) {
const video = document.querySelector('video');
if (!video) return;
switch (event.key) {
case ',':
video.currentTime -= 5;
break;
case '.':
video.currentTime += 5;
break;
}
});