@shadowtube/tizentube-noanimations 1.15.13 → 1.15.14
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function () { "use strict"; var
|
|
1
|
+
!function () { "use strict"; var t = true; var e = true; var n = false; var r = null; var a = []; var i = null; function o(t) { if (!n) return; try { a.push(t); if (a.length > 6) a.shift(); var e = document.body || document.documentElement; if (!e) return; if (!r) { r = document.createElement("div"); r.style.cssText = "position:fixed;top:8px;left:8px;z-index:2147483647;" + "background:rgba(0,0,0,0.85);color:#0f0;font:20px/1.3 monospace;" + "padding:6px 10px;white-space:pre;pointer-events:none" } r.textContent = a.join("\n"); if (!r.parentNode) e.appendChild(r); clearTimeout(i); i = setTimeout(function () { if (r && r.parentNode) r.parentNode.removeChild(r) }, 8e3) } catch (t) { } } if (t) { try { !function () { "use strict"; if (!window.__ttArrowSeekInstalled) { window.__ttArrowSeekInstalled = !0; var t = {}, e = 10; document.addEventListener("keydown", r, !0), document.addEventListener("keyup", r, !0) } function n(t) { for (; t && t !== document;) { var e = window.getComputedStyle(t); if ("true" === t.getAttribute("aria-hidden") || t.classList && t.classList.contains("zylon-hidden") || "none" === e.display || "hidden" === e.visibility) return !0; t = t.parentNode } return !1 } function r(r) { if (function (t) { return "ArrowLeft" === t.key || "ArrowRight" === t.key || 37 === t.keyCode || 39 === t.keyCode }(r)) { var a = r.keyCode || r.which, i = 39 === a ? 1 : -1; if ("keyup" === r.type) { if (!t[a]) return; return r.preventDefault(), r.stopImmediatePropagation(), void delete t[a] } if (!(r.altKey || r.ctrlKey || r.metaKey || r.shiftKey || (o = r.target) && (o.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(o.tagName || "")))) { var o, u = document.querySelector("video"); if (u && !u.paused && !u.ended) { if (!t[a]) { if (function (t) { if (!t || !t.closest) return !1; var e = t.closest("ytlr-tile-renderer"); return !(!e || n(e)) }(r.target)) return; if (function () { var t, e, r, a = ["ytlr-player-page", "ytlr-player-actions-container", "ytlr-progress-bar"]; for (t = 0; t < a.length; t++)if ((e = document.querySelector(a[t])) && !n(e) && "hidden" !== (r = window.getComputedStyle(e)).visibility && parseFloat(r.opacity) > 0 && e.getClientRects().length > 0) return !0; return !1 }()) return; t[a] = !0 } r.preventDefault(), r.stopImmediatePropagation(), function (t, n) { var r = t.currentTime + n * e, a = t.duration; r < 0 && (r = 0), isFinite(a) && r > a && (r = a), t.currentTime = r }(u, i) } } } } }() } catch (t) { } } function u() { var t = 100; var e = 1e4; var n = []; var r = []; var a = Date.now(); var i = 0; var o = document.createElement("div"); o.style.cssText = "position:fixed;top:8px;right:8px;z-index:2147483647;" + "background:rgba(0,0,0,0.8);color:#0f0;font:18px/1.25 monospace;" + "padding:6px 10px;white-space:pre;pointer-events:none"; function u(t, n, r) { t.push({ t: n, v: r }); while (t.length && n - t[0].t > e) t.shift() } function s(t) { var e = 0; for (var n = 0; n < t.length; n++)if (t[n].v > e) e = t[n].v; return e } function d(t) { var e = (t.getAttribute("class") || "").split(" ")[0]; return t.tagName.toLowerCase() + "." + e.slice(0, 34) } setInterval(function () { var e = Date.now(); var r = e - a - t; a = e; u(n, e, r > 0 ? r : 0) }, t); document.addEventListener("timeupdate", function () { var t = Date.now(); if (i) u(r, t, t - i); i = t }, true); setInterval(function () { try { var t = document.querySelector("video"); var e = document.body; var a = []; a.push("app-quality-root: " + (e && e.classList.contains("app-quality-root") ? "YES" : "no")); a.push("loop stall max 10s: " + s(n) + " ms"); a.push("timeupdate gap max 10s: " + s(r) + " ms"); if (t) { a.push("video t=" + t.currentTime.toFixed(2) + " paused=" + t.paused + " rate=" + t.playbackRate + " ready=" + t.readyState) } var i = document.querySelectorAll('[class*="aption"]'); a.push("caption nodes: " + i.length); for (var u = 0; u < i.length && u < 3; u++) { var c = window.getComputedStyle(i[u]); a.push(" " + d(i[u]) + " tr=" + c.transitionDuration + " an=" + c.animationName) } o.textContent = a.join("\n"); if (!o.parentNode) (document.body || document.documentElement).appendChild(o) } catch (t) { } }, 1e3) } if (n) { try { u() } catch (t) { } } function s() { var t = "app-quality-root"; var e = 0; var n = 0; var r = []; var a = false; var i = false; var u = null; function s() { i = false; if (a) return; var e = document.body; if (!e || e.classList.contains(t)) return; var s = Date.now(); r.push(s); while (r.length && s - r[0] > 5e3) r.shift(); if (r.length > 20) { a = true; if (u) u.disconnect(); o("guard: class keeps getting removed - observer stopped"); return } e.classList.add(t); n++; if (n === 1 || n % 10 === 0) o("guard: class restored x" + n) } function d() { if (!i && !a) { i = true; setTimeout(s, 0) } } function c() { var n = document.body; if (!n) return false; if (n.__ttQualityGuard) return true; n.__ttQualityGuard = true; var r = n.classList; var a = r.remove; var i = r.toggle; r.remove = function () { var n = []; for (var i = 0; i < arguments.length; i++) { if (arguments[i] !== t) n.push(arguments[i]) } if (n.length !== arguments.length) { e++; if (e === 1 || e % 10 === 0) o("guard: blocked remove() x" + e) } if (n.length) return a.apply(r, n) }; r.toggle = function (n, a) { if (n === t && (a === false || a === undefined && r.contains(t))) { e++; return true } return i.apply(r, arguments) }; if (u) u.disconnect(); if (typeof MutationObserver === "function") { u = new MutationObserver(function () { if (!n.classList.contains(t)) d() }); u.observe(n, { attributes: true, attributeFilter: ["class"] }) } if (!r.contains(t)) r.add(t); o("guard: installed"); return true } if (!c()) { var l = setInterval(function () { try { if (c()) clearInterval(l) } catch (t) { clearInterval(l) } }, 100) } setInterval(function () { try { if (!document.body) return; if (!document.body.__ttQualityGuard) c(); else d() } catch (t) { } }, 2e3) } if (e) { try { s() } catch (t) { o("guard: FAILED") } } }();
|
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.14",
|
|
5
5
|
"description": "NoAnimations",
|
|
6
6
|
"packageType": "mods",
|
|
7
7
|
"websiteURL": "https://youtube.com/tv?additionalDataUrl=http%3A%2F%2Flocalhost%3A8085%2Fdial%2Fapps%2FYouTube",
|
|
File without changes
|