@shadowtube/tizentube-noanimations 1.15.2 → 1.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
!(function () {
|
|
2
|
+
'use strict';
|
|
3
|
+
if (!window.__ttArrowSeekInstalled) {
|
|
4
|
+
window.__ttArrowSeekInstalled = !0;
|
|
5
|
+
var e = {},
|
|
6
|
+
t = 10;
|
|
7
|
+
(document.addEventListener('keydown', n, !0),
|
|
8
|
+
document.addEventListener('keyup', n, !0));
|
|
9
|
+
}
|
|
10
|
+
function r(e) {
|
|
11
|
+
for (; e && e !== document; ) {
|
|
12
|
+
var t = window.getComputedStyle(e);
|
|
13
|
+
if (
|
|
14
|
+
'true' === e.getAttribute('aria-hidden') ||
|
|
15
|
+
(e.classList && e.classList.contains('zylon-hidden')) ||
|
|
16
|
+
'none' === t.display ||
|
|
17
|
+
'hidden' === t.visibility
|
|
18
|
+
)
|
|
19
|
+
return !0;
|
|
20
|
+
e = e.parentNode;
|
|
21
|
+
}
|
|
22
|
+
return !1;
|
|
23
|
+
}
|
|
24
|
+
function n(n) {
|
|
25
|
+
if (
|
|
26
|
+
(function (e) {
|
|
27
|
+
return (
|
|
28
|
+
'ArrowLeft' === e.key ||
|
|
29
|
+
'ArrowRight' === e.key ||
|
|
30
|
+
37 === e.keyCode ||
|
|
31
|
+
39 === e.keyCode
|
|
32
|
+
);
|
|
33
|
+
})(n)
|
|
34
|
+
) {
|
|
35
|
+
var i = n.keyCode || n.which,
|
|
36
|
+
o = 39 === i ? 1 : -1;
|
|
37
|
+
if ('keyup' === n.type) {
|
|
38
|
+
if (!e[i]) return;
|
|
39
|
+
return (
|
|
40
|
+
n.preventDefault(),
|
|
41
|
+
n.stopImmediatePropagation(),
|
|
42
|
+
void delete e[i]
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
if (
|
|
46
|
+
!(
|
|
47
|
+
n.altKey ||
|
|
48
|
+
n.ctrlKey ||
|
|
49
|
+
n.metaKey ||
|
|
50
|
+
n.shiftKey ||
|
|
51
|
+
((a = n.target) &&
|
|
52
|
+
(a.isContentEditable ||
|
|
53
|
+
/^(INPUT|TEXTAREA|SELECT)$/.test(a.tagName || '')))
|
|
54
|
+
)
|
|
55
|
+
) {
|
|
56
|
+
var a,
|
|
57
|
+
d = document.querySelector('video');
|
|
58
|
+
if (d && !d.paused && !d.ended) {
|
|
59
|
+
if (!e[i]) {
|
|
60
|
+
if (
|
|
61
|
+
(function (e) {
|
|
62
|
+
if (!e || !e.closest) return !1;
|
|
63
|
+
var t = e.closest('ytlr-tile-renderer');
|
|
64
|
+
return !(!t || r(t));
|
|
65
|
+
})(n.target)
|
|
66
|
+
)
|
|
67
|
+
return;
|
|
68
|
+
if (
|
|
69
|
+
(function () {
|
|
70
|
+
var e,
|
|
71
|
+
t,
|
|
72
|
+
n,
|
|
73
|
+
i = [
|
|
74
|
+
'ytlr-player-page',
|
|
75
|
+
'ytlr-player-actions-container',
|
|
76
|
+
'ytlr-progress-bar',
|
|
77
|
+
];
|
|
78
|
+
for (e = 0; e < i.length; e++)
|
|
79
|
+
if (
|
|
80
|
+
(t = document.querySelector(i[e])) &&
|
|
81
|
+
!r(t) &&
|
|
82
|
+
'hidden' !== (n = window.getComputedStyle(t)).visibility &&
|
|
83
|
+
parseFloat(n.opacity) > 0 &&
|
|
84
|
+
t.getClientRects().length > 0
|
|
85
|
+
)
|
|
86
|
+
return !0;
|
|
87
|
+
return !1;
|
|
88
|
+
})()
|
|
89
|
+
)
|
|
90
|
+
return;
|
|
91
|
+
e[i] = !0;
|
|
92
|
+
}
|
|
93
|
+
(n.preventDefault(),
|
|
94
|
+
n.stopImmediatePropagation(),
|
|
95
|
+
(function (e, r) {
|
|
96
|
+
var n = e.currentTime + r * t,
|
|
97
|
+
i = e.duration;
|
|
98
|
+
(n < 0 && (n = 0),
|
|
99
|
+
isFinite(i) && n > i && (n = i),
|
|
100
|
+
(e.currentTime = n));
|
|
101
|
+
})(d, o));
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
})();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shadowtube/tizentube-noanimations",
|
|
3
3
|
"appName": "TizenTube",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.3",
|
|
5
5
|
"description": "NoAnimations",
|
|
6
6
|
"packageType": "mods",
|
|
7
7
|
"websiteURL": "https://youtube.com/tv?additionalDataUrl=http%3A%2F%2Flocalhost%3A8085%2Fdial%2Fapps%2FYouTube",
|