@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 e = true; var t = true; var r = true; var n = false; var i = null; var a = []; var o = null; function u(e) { if (!n) return; try { a.push(e); if (a.length > 6) a.shift(); var t = document.body || document.documentElement; if (!t) return; if (!i) { i = document.createElement("div"); i.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" } i.textContent = a.join("\n"); if (!i.parentNode) t.appendChild(i); clearTimeout(o); o = setTimeout(function () { if (i && i.parentNode) i.parentNode.removeChild(i) }, 8e3) } catch (e) { } } if (e) { try { !function () { "use strict"; if (!window.__ttArrowSeekInstalled) { window.__ttArrowSeekInstalled = !0; var e = {}, t = 10; document.addEventListener("keydown", n, !0), document.addEventListener("keyup", n, !0) } function r(e) { for (; e && e !== document;) { var t = window.getComputedStyle(e); if ("true" === e.getAttribute("aria-hidden") || e.classList && e.classList.contains("zylon-hidden") || "none" === t.display || "hidden" === t.visibility) return !0; e = e.parentNode } return !1 } function n(n) { if (function (e) { return "ArrowLeft" === e.key || "ArrowRight" === e.key || 37 === e.keyCode || 39 === e.keyCode }(n)) { var i = n.keyCode || n.which, a = 39 === i ? 1 : -1; if ("keyup" === n.type) { if (!e[i]) return; return n.preventDefault(), n.stopImmediatePropagation(), void delete e[i] } if (!(n.altKey || n.ctrlKey || n.metaKey || n.shiftKey || (o = n.target) && (o.isContentEditable || /^(INPUT|TEXTAREA|SELECT)$/.test(o.tagName || "")))) { var o, u = document.querySelector("video"); if (u && !u.paused && !u.ended) { if (!e[i]) { if (function (e) { if (!e || !e.closest) return !1; var t = e.closest("ytlr-tile-renderer"); return !(!t || r(t)) }(n.target)) return; if (function () { var e, t, n, i = ["ytlr-player-page", "ytlr-player-actions-container", "ytlr-progress-bar"]; for (e = 0; e < i.length; e++)if ((t = document.querySelector(i[e])) && !r(t) && "hidden" !== (n = window.getComputedStyle(t)).visibility && parseFloat(n.opacity) > 0 && t.getClientRects().length > 0) return !0; return !1 }()) return; e[i] = !0 } n.preventDefault(), n.stopImmediatePropagation(), function (e, r) { var n = e.currentTime + r * t, i = e.duration; n < 0 && (n = 0), isFinite(i) && n > i && (n = i), e.currentTime = n }(u, a) } } } } }() } catch (e) { } } function c() { var e = "ytaf-configuration"; var t = window.localStorage.getItem(e); var r = null; if (t) { try { r = JSON.parse(t) } catch (e) { return } if (!r || typeof r !== "object") return } else { r = {} } if (r.enableFixedUI === false) return; r.enableFixedUI = false; window.localStorage.setItem(e, JSON.stringify(r)); u("Fix UI: switched OFF (restart the app once)") } if (t) { try { c(); setTimeout(function () { try { c() } catch (e) { } }, 5e3) } catch (e) { } } function s() { var e = "app-quality-root"; var t = 0; var r = 0; var n = []; var i = false; var a = false; var o = null; function c() { a = false; if (i) return; var t = document.body; if (!t || t.classList.contains(e)) return; var c = Date.now(); n.push(c); while (n.length && c - n[0] > 5e3) n.shift(); if (n.length > 20) { i = true; if (o) o.disconnect(); u("guard: class keeps getting removed - observer stopped"); return } t.classList.add(e); r++; if (r === 1 || r % 10 === 0) u("guard: class restored x" + r) } function s() { if (!a && !i) { a = true; setTimeout(c, 0) } } function l() { var r = document.body; if (!r) return false; if (r.__ttQualityGuard) return true; r.__ttQualityGuard = true; var n = r.classList; var i = n.remove; var a = n.toggle; n.remove = function () { var r = []; for (var a = 0; a < arguments.length; a++) { if (arguments[a] !== e) r.push(arguments[a]) } if (r.length !== arguments.length) { t++; if (t === 1 || t % 10 === 0) u("guard: blocked remove() x" + t) } if (r.length) return i.apply(n, r) }; n.toggle = function (r, i) { if (r === e && (i === false || i === undefined && n.contains(e))) { t++; return true } return a.apply(n, arguments) }; if (o) o.disconnect(); if (typeof MutationObserver === "function") { o = new MutationObserver(function () { if (!r.classList.contains(e)) s() }); o.observe(r, { attributes: true, attributeFilter: ["class"] }) } if (!n.contains(e)) n.add(e); u("guard: installed"); return true } if (!l()) { var f = setInterval(function () { try { if (l()) clearInterval(f) } catch (e) { clearInterval(f) } }, 100) } setInterval(function () { try { if (!document.body) return; if (!document.body.__ttQualityGuard) l(); else s() } catch (e) { } }, 2e3) } if (r) { try { s() } catch (e) { u("guard: FAILED") } } }();
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.13",
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",