@kangsicj/nexussync 1.6.14 → 1.6.16
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.
- package/dist/NexusSync.meta.js +1 -1
- package/dist/NexusSync.user.js +163 -34
- package/package.json +1 -1
package/dist/NexusSync.meta.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @icon https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/assets/icon.svg
|
|
9
9
|
// @updateURL https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/dist/NexusSync.meta.js
|
|
10
10
|
// @downloadURL https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/dist/NexusSync.user.js
|
|
11
|
-
// @version 1.6.
|
|
11
|
+
// @version 1.6.16
|
|
12
12
|
// @description Watch any web video together in perfect sync: cinema mode, live AI subtitles & translation, chat bubbles with auto-translation, quick ink, cover, go-together to the next episode.
|
|
13
13
|
// @description:ko 어떤 웹 영상이든 완벽한 싱크로 함께 보기: 시네마 모드, 실시간 AI 자막·번역, 자동 번역 말풍선 채팅, 잠깐 그리기, 가리기, 다음 화도 함께.
|
|
14
14
|
// @match *://*/*
|
package/dist/NexusSync.user.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// @icon https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/assets/icon.svg
|
|
9
9
|
// @updateURL https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/dist/NexusSync.meta.js
|
|
10
10
|
// @downloadURL https://cdn.jsdelivr.net/npm/@kangsicj/nexussync@latest/dist/NexusSync.user.js
|
|
11
|
-
// @version 1.6.
|
|
11
|
+
// @version 1.6.16
|
|
12
12
|
// @description Watch any web video together in perfect sync: cinema mode, live AI subtitles & translation, chat bubbles with auto-translation, quick ink, cover, go-together to the next episode.
|
|
13
13
|
// @description:ko 어떤 웹 영상이든 완벽한 싱크로 함께 보기: 시네마 모드, 실시간 AI 자막·번역, 자동 번역 말풍선 채팅, 잠깐 그리기, 가리기, 다음 화도 함께.
|
|
14
14
|
// @match *://*/*
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
|
|
47
47
|
// The version of the code that is actually running (the manager's metadata can lag
|
|
48
48
|
// behind when an old copy is still installed).
|
|
49
|
-
const NXU_VERSION = '1.6.
|
|
49
|
+
const NXU_VERSION = '1.6.16';
|
|
50
50
|
// Rank used by the one-instance guard below and to tell newer builds apart in a room.
|
|
51
51
|
// It is independent of the public version (1.0.0 is the first public release, after
|
|
52
52
|
// private builds that reached ranks up to 10.2.0), so every older copy still installed
|
|
53
53
|
// steps aside instead of this release.
|
|
54
|
-
const NXU_RANK = '11.6.
|
|
54
|
+
const NXU_RANK = '11.6.16';
|
|
55
55
|
const NXU_SESSION = Math.random().toString(36).slice(2, 10); // this page load // raise with every release
|
|
56
56
|
// App icon (same artwork as assets/icon.svg / @icon), inlined so it shows offline too.
|
|
57
57
|
const NXU_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNTYgMjU2IiByb2xlPSJpbWciIGFyaWEtbGFiZWw9Ik5leHVzU3luYyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJueGJnIiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjNWIyZWZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmY0ZmEzIi8+PC9saW5lYXJHcmFkaWVudD48cmFkaWFsR3JhZGllbnQgaWQ9Im54Z2xvdyIgY3g9IjAuODIiIGN5PSIwLjE0IiByPSIwLjciPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzdjZjlmZiIgc3RvcC1vcGFjaXR5PSIwLjU1Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjN2NmOWZmIiBzdG9wLW9wYWNpdHk9IjAiLz48L3JhZGlhbEdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibnhwbGF5IiB4MT0iMCIgeTE9IjAiIHgyPSIxIiB5Mj0iMSI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjZmZmZmZmIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjZmZlM2YxIi8+PC9saW5lYXJHcmFkaWVudD48Y2xpcFBhdGggaWQ9Im54ciI+PHJlY3Qgd2lkdGg9IjI1NiIgaGVpZ2h0PSIyNTYiIHJ4PSI1OCIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNueHIpIj48cmVjdCB3aWR0aD0iMjU2IiBoZWlnaHQ9IjI1NiIgZmlsbD0idXJsKCNueGJnKSIvPjxyZWN0IHdpZHRoPSIyNTYiIGhlaWdodD0iMjU2IiBmaWxsPSJ1cmwoI254Z2xvdykiLz48ZyBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMTUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTYwIDExNiBBNzAgNzAgMCAwIDEgMTc4IDcyIi8+PHBhdGggZD0iTTE5NiAxNDAgQTcwIDcwIDAgMCAxIDc4IDE4NCIvPjwvZz48cGF0aCBkPSJNMTg2IDUwIEwyMDAgOTIgTDE1NyA4NiBaIiBmaWxsPSIjZmZmZmZmIi8+PHBhdGggZD0iTTcwIDIwNiBMNTYgMTY0IEw5OSAxNzAgWiIgZmlsbD0iI2ZmZmZmZiIvPjxwYXRoIGQ9Ik0xMTAgOTIgUTEwNCA4OCAxMDQgOTYgTDEwNCAxNjAgUTEwNCAxNjggMTEwIDE2NCBMMTYyIDEzMiBRMTY4IDEyOCAxNjIgMTI0IFoiIGZpbGw9InVybCgjbnhwbGF5KSIvPjwvZz48L3N2Zz4=';
|
|
@@ -745,7 +745,7 @@ async function handle(m) {
|
|
|
745
745
|
findMedia: 'Find Media', connect: 'Connect', disconnect: 'Disconnect', connecting: 'Connecting…', loading: 'Loading…', offline: 'Offline', sync: 'Sync',
|
|
746
746
|
cinema: 'Cinema', cinemaTitle: 'Fill the window with the video (Alt+Shift+C, Esc to exit)', cinemaOn: '🍿 Cinema ON', cinemaOff: '🍿 Cinema OFF',
|
|
747
747
|
cinemaPending: '🍿 Cinema will start when a video is found', cinemaPendingOff: '🍿 Cinema request cancelled', cinemaExit: 'Exit cinema', cinemaExitTitle: 'Exit cinema mode (Esc)',
|
|
748
|
-
rotateTitle: 'Landscape view (works with rotation lock) · hold to turn auto on/off', rotateAutoOn: '📱 Tilt-to-landscape ON (works with rotation lock)', rotateAutoOff: '📱 Tilt-to-landscape OFF',
|
|
748
|
+
rotateTitle: 'Landscape view (works with rotation lock): tap for one side, again for the other, again to go back · hold to turn auto on/off', rotateOnce: '↻ Landscape · tap again for the other side', rotateOther: '↺ Turned to the other side · tap again to go back', rotateAutoOn: '📱 Tilt-to-landscape ON (works with rotation lock)', rotateAutoOff: '📱 Tilt-to-landscape OFF',
|
|
749
749
|
rotateDenied: '📱 Motion access was declined, so tilting cannot switch to landscape. Use the ↻ button in cinema mode.', menuRotate: 'Tilt-to-landscape for videos on/off (iPhone)',
|
|
750
750
|
canvas: 'Canvas', bookmark: 'Bookmark', bookmarkTitle: 'Bookmark the current position', chat: 'Chat', aiSub: 'AI Sub', aiSubTitle: 'Live subtitles & translation (Alt+Shift+T)',
|
|
751
751
|
subLog: 'Sub Log', debug: 'Debug', hideOnSite: 'Hide on this site', hideOnSiteTitle: 'Hide the floating button on this site (restore with Alt+Shift+N or the userscript menu)',
|
|
@@ -872,7 +872,7 @@ async function handle(m) {
|
|
|
872
872
|
findMedia: '미디어 찾기', connect: '연결', disconnect: '연결 해제', connecting: '연결 중…', loading: '불러오는 중…', offline: '오프라인', sync: '동기화',
|
|
873
873
|
cinema: '시네마', cinemaTitle: '영상을 창 전체로 크게 보기 (Alt+Shift+C, Esc로 종료)', cinemaOn: '🍿 시네마 모드 켜짐', cinemaOff: '🍿 시네마 모드 꺼짐',
|
|
874
874
|
cinemaPending: '🍿 영상이 감지되면 시네마 모드가 적용됩니다', cinemaPendingOff: '🍿 시네마 예약 취소', cinemaExit: '시네마 종료', cinemaExitTitle: '시네마 모드 종료 (Esc)',
|
|
875
|
-
rotateTitle: '가로로 보기 (화면 고정 상태에서도) · 길게 누르면 자동 전환 켜기/끄기', rotateAutoOn: '📱 기울이면 가로 보기 켜짐 (화면 고정 해제 불필요)', rotateAutoOff: '📱 기울이면 가로 보기 꺼짐',
|
|
875
|
+
rotateTitle: '가로로 보기 (화면 고정 상태에서도): 한 번 누르면 한쪽, 또 누르면 반대쪽, 또 누르면 원래대로 · 길게 누르면 자동 전환 켜기/끄기', rotateOnce: '↻ 가로 보기 · 한 번 더 누르면 반대쪽으로 돌아가요', rotateOther: '↺ 반대쪽으로 돌렸어요 · 한 번 더 누르면 원래대로', rotateAutoOn: '📱 기울이면 가로 보기 켜짐 (화면 고정 해제 불필요)', rotateAutoOff: '📱 기울이면 가로 보기 꺼짐',
|
|
876
876
|
rotateDenied: '📱 동작·방향 접근이 거부되어 기울여서 가로 보기를 쓸 수 없습니다. 시네마 화면의 ↻ 버튼으로 돌릴 수 있습니다.', menuRotate: '동영상 기울이면 가로 보기 켜기/끄기 (아이폰)',
|
|
877
877
|
canvas: '캔버스', bookmark: '북마크', bookmarkTitle: '현재 위치를 북마크', chat: '채팅', aiSub: 'AI 자막', aiSubTitle: '실시간 자막·번역 (Alt+Shift+T)',
|
|
878
878
|
subLog: '자막 기록', debug: '디버그', hideOnSite: '이 사이트에서 숨기기', hideOnSiteTitle: '이 사이트에서 떠 있는 버튼 숨기기 (Alt+Shift+N 또는 유저스크립트 메뉴로 복원)',
|
|
@@ -1279,7 +1279,8 @@ async function handle(m) {
|
|
|
1279
1279
|
visibility: hidden !important; pointer-events: none !important; transition: none !important; animation: none !important; }
|
|
1280
1280
|
.nxu-site-ui-off :is([class*="caption" i], [class*="subtitle" i], [class*="text-track" i], [class*="cue" i], [class*="danmaku" i]) { visibility: visible !important; }
|
|
1281
1281
|
.nxu-site-ui-off .nxu-site-hide { visibility: hidden !important; pointer-events: none !important; transition: none !important; animation: none !important; }
|
|
1282
|
-
|
|
1282
|
+
/* Hidden by opacity (not visibility): what the site itself shows or hides inside can still be read. */
|
|
1283
|
+
.nxu-site-ui-off .nxu-dsub-src { opacity: 0 !important; clip-path: inset(100%) !important; pointer-events: none !important; transition: none !important; animation: none !important; }
|
|
1283
1284
|
.nxu-cue-mirror { position: absolute !important; left: calc(50% + var(--nxu-cue-shift, 0px)) !important; right: auto !important; top: auto !important; bottom: var(--nxu-cue-bottom, 6%) !important; transform: translateX(-50%) !important;
|
|
1284
1285
|
width: var(--nxu-cue-width, 90%) !important; max-width: 96% !important; height: auto !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
|
|
1285
1286
|
flex-direction: column !important; align-items: center !important; gap: 3px !important; z-index: 2147483646 !important; transition: bottom 0.3s ease !important; pointer-events: none !important; visibility: visible !important; opacity: 1 !important; }
|
|
@@ -1426,7 +1427,8 @@ async function handle(m) {
|
|
|
1426
1427
|
_startAmbient(video, root) {
|
|
1427
1428
|
this._stopAmbient();
|
|
1428
1429
|
this._ambientPaused = false;
|
|
1429
|
-
if (!video || !root || !this.ambientEnabled()) return;
|
|
1430
|
+
if (!video || !root || !this.ambientEnabled() || (this._ambientBlocked && this._ambientBlockedFor === video)) return;
|
|
1431
|
+
this._ambientBlocked = false; this._ambientBlockedFor = video; this._layerBelow = false;
|
|
1430
1432
|
try { if (video.mediaKeys || video.webkitKeys) return; } catch (_) { } // DRM video always draws black
|
|
1431
1433
|
const doc = video.ownerDocument;
|
|
1432
1434
|
if (root.getRootNode() !== doc) return; // player inside a site's shadow DOM: our styles can't reach it
|
|
@@ -1455,6 +1457,8 @@ async function handle(m) {
|
|
|
1455
1457
|
this._matchLayerZ(layer, root);
|
|
1456
1458
|
const cleared = new Map();
|
|
1457
1459
|
this._clearBackdrops(video, root, cleared);
|
|
1460
|
+
setTimeout(() => this._guardGlow(), 60);
|
|
1461
|
+
setTimeout(() => this._guardGlow(), 900);
|
|
1458
1462
|
// Reading a video frame is the costly part (it was almost all of cinema's CPU time at
|
|
1459
1463
|
// 16 a second). Six a second with a stronger blend looks the same: the glow eases
|
|
1460
1464
|
// between scenes anyway, and a cut still shows within a fraction of a second.
|
|
@@ -1484,7 +1488,10 @@ async function handle(m) {
|
|
|
1484
1488
|
const barX = (vw - Math.min(vw, vh * ar)) / 2, barY = (vh - Math.min(vh, vw / ar)) / 2;
|
|
1485
1489
|
const want = Math.round(Math.min(vw, vh) * 0.045);
|
|
1486
1490
|
bars = barX >= 2 || barY >= 2;
|
|
1487
|
-
|
|
1491
|
+
// Phones: the picture is never made smaller for the glow (switching the
|
|
1492
|
+
// glow off then looked like "fill screen" had been turned on).
|
|
1493
|
+
const phone = Math.min(view.screen?.width || vw, view.screen?.height || vh) < 500;
|
|
1494
|
+
if (barX < want && barY < want && !phone) inset = want;
|
|
1488
1495
|
}
|
|
1489
1496
|
visible = fit === 'contain' && (bars || inset > 0 || !ar);
|
|
1490
1497
|
root.style.setProperty('--nxu-stage-x', inset + 'px');
|
|
@@ -1571,10 +1578,50 @@ async function handle(m) {
|
|
|
1571
1578
|
try {
|
|
1572
1579
|
const z = (root.ownerDocument.defaultView || window).getComputedStyle(root).zIndex;
|
|
1573
1580
|
// One below the root (never level with it: some layouts then drew the glow on top).
|
|
1574
|
-
const
|
|
1581
|
+
const cs = (root.ownerDocument.defaultView || window).getComputedStyle(root);
|
|
1582
|
+
// A root that is not positioned ignores its z-index: any positioned layer at 0 or
|
|
1583
|
+
// more would be drawn over it (the whole picture looked blurred), so the glow goes below.
|
|
1584
|
+
const want = this._layerBelow || cs.position === 'static' ? '-1' : /^-?\d+$/.test(z) ? String(Math.max(-2147483647, Number(z) - 1)) : '0';
|
|
1575
1585
|
if (layer.style.getPropertyValue('z-index') !== want) layer.style.setProperty('z-index', want, 'important');
|
|
1576
1586
|
} catch (_) { }
|
|
1577
1587
|
},
|
|
1588
|
+
// Is the glow drawn over the picture? Asked of the browser itself (what is on top at the
|
|
1589
|
+
// middle of the video), whatever the page's layout does. The glow and the video are
|
|
1590
|
+
// made hit-testable for the question only.
|
|
1591
|
+
_glowCoversVideo(a) {
|
|
1592
|
+
const doc = a.video.ownerDocument;
|
|
1593
|
+
const r = a.video.getBoundingClientRect();
|
|
1594
|
+
if (r.width < 40 || r.height < 40 || typeof doc.elementsFromPoint !== 'function') return false;
|
|
1595
|
+
const view = doc.defaultView || window;
|
|
1596
|
+
const x = Math.min(view.innerWidth - 2, Math.max(1, r.left + r.width / 2)), y = Math.min(view.innerHeight - 2, Math.max(1, r.top + r.height / 2));
|
|
1597
|
+
const keepL = a.layer.style.getPropertyValue('pointer-events'), prioL = a.layer.style.getPropertyPriority('pointer-events');
|
|
1598
|
+
const keepV = a.video.style.getPropertyValue('pointer-events'), prioV = a.video.style.getPropertyPriority('pointer-events');
|
|
1599
|
+
let covers = false;
|
|
1600
|
+
try {
|
|
1601
|
+
a.layer.style.setProperty('pointer-events', 'auto', 'important');
|
|
1602
|
+
a.video.style.setProperty('pointer-events', 'auto', 'important');
|
|
1603
|
+
const hits = doc.elementsFromPoint(x, y);
|
|
1604
|
+
const li = hits.indexOf(a.layer), vi = hits.indexOf(a.video);
|
|
1605
|
+
covers = li !== -1 && vi !== -1 && li < vi;
|
|
1606
|
+
} catch (_) { }
|
|
1607
|
+
if (keepL) a.layer.style.setProperty('pointer-events', keepL, prioL); else a.layer.style.removeProperty('pointer-events');
|
|
1608
|
+
if (keepV) a.video.style.setProperty('pointer-events', keepV, prioV); else a.video.style.removeProperty('pointer-events');
|
|
1609
|
+
return covers;
|
|
1610
|
+
},
|
|
1611
|
+
// Checked shortly after the glow starts and while cinema is on: first it is put below
|
|
1612
|
+
// everything; if the page still draws it over the picture, it is switched off here.
|
|
1613
|
+
_guardGlow() {
|
|
1614
|
+
const a = this._ambient;
|
|
1615
|
+
if (!a || !this._glowCoversVideo(a)) return;
|
|
1616
|
+
if (!this._layerBelow) {
|
|
1617
|
+
this._layerBelow = true;
|
|
1618
|
+
this._matchLayerZ(a.layer, a.root);
|
|
1619
|
+
if (!this._glowCoversVideo(a)) { logDebug('Ambient light moved below the page (it was drawn over the picture).', 'info'); return; }
|
|
1620
|
+
}
|
|
1621
|
+
logDebug('Ambient light off for this player: the page draws it over the picture.', 'warn');
|
|
1622
|
+
this._stopAmbient();
|
|
1623
|
+
this._ambientBlocked = true;
|
|
1624
|
+
},
|
|
1578
1625
|
_ambientMisplaced(a) {
|
|
1579
1626
|
return !a.layer.isConnected || !a.root.classList.contains('nxu-ambient-on') ||
|
|
1580
1627
|
(a.root.parentNode && a.root.parentNode.nodeType === 1 && a.layer.nextSibling !== a.root);
|
|
@@ -1793,7 +1840,7 @@ async function handle(m) {
|
|
|
1793
1840
|
// The site may fade or blur its video later (e.g. once it starts playing).
|
|
1794
1841
|
const why = this._seeThrough(a.video, a.root);
|
|
1795
1842
|
if (why) { logDebug('Ambient light off for this player: ' + why, 'info'); this._stopAmbient(); this._ambientPaused = true; }
|
|
1796
|
-
else { this._matchLayerZ(a.layer, a.root); this._clearBackdrops(a.video, a.root, a.cleared); }
|
|
1843
|
+
else { this._matchLayerZ(a.layer, a.root); this._clearBackdrops(a.video, a.root, a.cleared); this._guardGlow(); }
|
|
1797
1844
|
} else if (this._ambientPaused && this.ambientEnabled() && this.applied.video && this.applied.chain[0]?.root && Date.now() - (this._ambientTry || 0) > 2000) {
|
|
1798
1845
|
this._ambientTry = Date.now();
|
|
1799
1846
|
// Turned off only while the site faded or covered its picture (loading,
|
|
@@ -2162,6 +2209,7 @@ async function handle(m) {
|
|
|
2162
2209
|
const sideways = this._cand !== 0;
|
|
2163
2210
|
this._apply(0);
|
|
2164
2211
|
this.manual = false;
|
|
2212
|
+
this.pinned = false;
|
|
2165
2213
|
this.autoCinema = false;
|
|
2166
2214
|
if (sideways) this.suppress = true;
|
|
2167
2215
|
}
|
|
@@ -2195,7 +2243,7 @@ async function handle(m) {
|
|
|
2195
2243
|
if (side) this._lastSide = side;
|
|
2196
2244
|
// Turned on with ↻: stays in landscape, but follows the phone to the other side
|
|
2197
2245
|
// (left or right edge down) instead of staying stuck on the first one.
|
|
2198
|
-
if (this.manual) { if (side && this.deg && side !== this.deg) this._apply(side); return; }
|
|
2246
|
+
if (this.manual) { if (side && this.deg && side !== this.deg && !this.pinned) this._apply(side); return; }
|
|
2199
2247
|
if (!side) {
|
|
2200
2248
|
this.suppress = false;
|
|
2201
2249
|
if (this.deg) this._leave();
|
|
@@ -2219,18 +2267,29 @@ async function handle(m) {
|
|
|
2219
2267
|
if (STATE.isCinema) CINEMA.set(false, { silent: true });
|
|
2220
2268
|
}
|
|
2221
2269
|
},
|
|
2222
|
-
// ↻ button:
|
|
2270
|
+
// ↻ button: each tap goes on — sideways one way (the side the phone was last held),
|
|
2271
|
+
// sideways the other way, upright again — so the picture can be watched with either
|
|
2272
|
+
// edge of the phone down. A side picked with the second tap stays (tilt does not flip it).
|
|
2223
2273
|
toggleManual() {
|
|
2224
2274
|
this.requestAccess(true);
|
|
2275
|
+
if (this.deg && this.manual && !this.pinned) {
|
|
2276
|
+
this.pinned = true;
|
|
2277
|
+
this._apply(-this.deg);
|
|
2278
|
+
showToast(t('rotateOther'));
|
|
2279
|
+
return;
|
|
2280
|
+
}
|
|
2225
2281
|
if (this.deg) {
|
|
2226
2282
|
this.manual = false;
|
|
2283
|
+
this.pinned = false;
|
|
2227
2284
|
if (this._cand) this.suppress = true;
|
|
2228
2285
|
this._leave();
|
|
2229
2286
|
return;
|
|
2230
2287
|
}
|
|
2231
2288
|
if (!STATE.isCinema) { CINEMA.set(true, { silent: true }); if (!STATE.isCinema) return; }
|
|
2232
2289
|
this.manual = true;
|
|
2290
|
+
this.pinned = false;
|
|
2233
2291
|
this._apply(this._cand || this._lastSide || 90);
|
|
2292
|
+
if (this._perm === 'granted') showToast(t('rotateOnce')); // (a refused motion prompt has its own notice)
|
|
2234
2293
|
},
|
|
2235
2294
|
_apply(deg) {
|
|
2236
2295
|
this.deg = deg;
|
|
@@ -4241,6 +4300,7 @@ async function handle(m) {
|
|
|
4241
4300
|
return;
|
|
4242
4301
|
}
|
|
4243
4302
|
if (token !== this._startToken) return;
|
|
4303
|
+
CLOUD_ASR.boost = !this.webMediaStream; // listening through the microphone
|
|
4244
4304
|
if (this._cloud && !(this.audioContext && this.audioNodes?.mix && CLOUD_ASR.start(this.audioContext, this.audioNodes.mix))) {
|
|
4245
4305
|
this._cloud = false;
|
|
4246
4306
|
logDebug('AI Sub: cloud recognition needs an audio input here; using browser recognition.', 'warn');
|
|
@@ -4298,6 +4358,7 @@ async function handle(m) {
|
|
|
4298
4358
|
'video: ' + (v ? (v.paused ? 'paused' : 'playing') + (v.muted ? ', muted' : '') + ', volume ' + Math.round((v.volume || 0) * 100) + '%' : (STATE.cinemaIframe ? 'in a frame' : 'none')) + ' · sound from: ' + (this._sharedTab && this.webMediaStream === this._sharedTab ? 'shared tab' : this._webFromElement ? 'video element' : this.captureMode) + ' · video sound peak: ' + (this._mediaPeak || 0).toFixed(4),
|
|
4299
4359
|
'levels: video ' + Math.round((this._levels?.media || 0) * 400) + ' · mic ' + Math.round((this._levels?.mic || 0) * 400),
|
|
4300
4360
|
'engine events: sound ' + this._diag.sound + ' · results ' + this._diag.results + ' (with words ' + (this._diag.words || 0) + ', empty ' + (this._diag.empty || 0) + ')' + (this._diag.lastText ? ' · last heard "' + this._diag.lastText + '"' : '') + ' · last error ' + (this._diag.err || '-') + ' · network errors ' + (this._networkErrors || 0),
|
|
4361
|
+
...(this._cloud ? ['cloud/offline engine: pieces sent ' + CLOUD_ASR.diag.sent + ' · with words ' + CLOUD_ASR.diag.answered + ' · empty ' + CLOUD_ASR.diag.empty + ' · failed ' + CLOUD_ASR.diag.failed + (CLOUD_ASR.diag.lastErr ? ' (' + CLOUD_ASR.diag.lastErr + ')' : '') + ' · last answer took ' + (CLOUD_ASR.diag.lastMs / 1000).toFixed(1) + ' s' + (CLOUD_ASR.diag.lastText ? ' · last heard "' + CLOUD_ASR.diag.lastText + '"' : '') + ' · input gain ×' + (CLOUD_ASR.gain || 1).toFixed(1) + ' · level now ' + Math.round((CLOUD_ASR.level || 0) * 400)] : []),
|
|
4301
4362
|
'issue: ' + (this._issue === 'ios-echo' ? 'ios-echo (Safari\'s engine removes the phone\'s own sound: use offline Whisper or Groq as the recognition engine)' : this._issue || '-') + ' · started with: ' + (this._feedFromMemory || 'video track') + ' · remembered for this browser: ' + (STORE.get(this._feedKey(), '') || '-') + ' · running ' + Math.round((Date.now() - (this._startedAt || Date.now())) / 1000) + ' s'
|
|
4302
4363
|
];
|
|
4303
4364
|
return lines.join('\n');
|
|
@@ -5155,6 +5216,7 @@ async function handle(m) {
|
|
|
5155
5216
|
_seq: 0, _next: 1, _results: new Map(), _inflight: new Set(), _failures: 0,
|
|
5156
5217
|
level: 0,
|
|
5157
5218
|
|
|
5219
|
+
boost: false, gain: 1, diag: { sent: 0, answered: 0, empty: 0, failed: 0, lastMs: 0, lastText: '' },
|
|
5158
5220
|
start(ctx, inputNode) {
|
|
5159
5221
|
this.stop();
|
|
5160
5222
|
if (!ctx || !inputNode || typeof ctx.createScriptProcessor !== 'function') return false;
|
|
@@ -5166,7 +5228,8 @@ async function handle(m) {
|
|
|
5166
5228
|
sink.connect(ctx.destination);
|
|
5167
5229
|
node.onaudioprocess = (e) => { if (this.active) this._onAudio(e.inputBuffer.getChannelData(0), ctx.sampleRate); };
|
|
5168
5230
|
Object.assign(this, { node, sink, input: inputNode, active: true, _pos: 0, _last: 0, _carry: new Float32Array(0), _pre: [], _seg: null, _speaking: false,
|
|
5169
|
-
_voicedRun: 0, _voiced: 0, _silence: 0, _floor: 0.004, _seq: 0, _next: 1, _failures: 0
|
|
5231
|
+
_voicedRun: 0, _voiced: 0, _silence: 0, _floor: 0.004, _seq: 0, _next: 1, _failures: 0, _peak: 0.02, gain: 1,
|
|
5232
|
+
diag: { sent: 0, answered: 0, empty: 0, failed: 0, lastMs: 0, lastText: '' } });
|
|
5170
5233
|
this._results.clear();
|
|
5171
5234
|
return true;
|
|
5172
5235
|
},
|
|
@@ -5205,12 +5268,26 @@ async function handle(m) {
|
|
|
5205
5268
|
}
|
|
5206
5269
|
this._carry = Float32Array.from(buffer.slice(offset));
|
|
5207
5270
|
},
|
|
5271
|
+
// Quiet input is brought up before the voice gate: a phone's microphone listening to its
|
|
5272
|
+
// own speaker (no gain control, no echo canceller) delivers the video at well under
|
|
5273
|
+
// the gate's level, so nothing was ever sent. The gain follows the loudest recent
|
|
5274
|
+
// sound (about 7 s memory); up to ×40 for a microphone, ×6 for the video's own track.
|
|
5275
|
+
_autoGain(frame, rms) {
|
|
5276
|
+
this._peak = Math.max(rms, (this._peak || 0.02) * 0.998);
|
|
5277
|
+
const want = Math.min(this.boost ? 40 : 6, Math.max(1, 0.08 / Math.max(this._peak, 1e-5)));
|
|
5278
|
+
this.gain = (this.gain || 1) * 0.9 + want * 0.1;
|
|
5279
|
+
if (this.gain < 1.05) return rms;
|
|
5280
|
+
const g = this.gain;
|
|
5281
|
+
for (let i = 0; i < frame.length; i++) { const x = frame[i] * g; frame[i] = x > 1 ? 1 : x < -1 ? -1 : x; }
|
|
5282
|
+
return Math.min(1, rms * g);
|
|
5283
|
+
},
|
|
5208
5284
|
_frame(frame) {
|
|
5209
5285
|
let sum = 0;
|
|
5210
5286
|
for (let i = 0; i < frame.length; i++) sum += frame[i] * frame[i];
|
|
5211
|
-
|
|
5287
|
+
let rms = Math.sqrt(sum / frame.length);
|
|
5212
5288
|
if (!Number.isFinite(rms)) return;
|
|
5213
5289
|
this.level = rms;
|
|
5290
|
+
rms = this._autoGain(frame, rms);
|
|
5214
5291
|
const threshold = Math.max(0.007, this._floor * 3 + 0.002);
|
|
5215
5292
|
if (!this._speaking) {
|
|
5216
5293
|
// Track background noise only while nobody speaks.
|
|
@@ -5276,6 +5353,8 @@ async function handle(m) {
|
|
|
5276
5353
|
this._inflight.add(ctrl);
|
|
5277
5354
|
const seconds = (frames.length * 0.02).toFixed(1);
|
|
5278
5355
|
let text = '';
|
|
5356
|
+
const diag = this.diag, began = Date.now();
|
|
5357
|
+
diag.sent++;
|
|
5279
5358
|
try {
|
|
5280
5359
|
if (AI.asrProvider() === 'local') {
|
|
5281
5360
|
const pcm = new Float32Array(frames.reduce((n, f) => n + f.length, 0));
|
|
@@ -5283,9 +5362,12 @@ async function handle(m) {
|
|
|
5283
5362
|
text = await LOCAL_WHISPER.transcribe(pcm, baseLang(TRANSLATOR._recognitionLanguage()));
|
|
5284
5363
|
} else text = await AI.transcribe(this._wav(frames), { lang: baseLang(TRANSLATOR._recognitionLanguage()), prompt: [glossaryTerms().join(', '), TRANSLATOR._cloudPrompt].filter(Boolean).join('. '), signal: ctrl.signal });
|
|
5285
5364
|
this._failures = 0;
|
|
5365
|
+
diag.lastMs = Date.now() - began;
|
|
5366
|
+
if (text) { diag.answered++; diag.lastText = text.slice(0, 40); } else diag.empty++;
|
|
5286
5367
|
} catch (err) {
|
|
5287
5368
|
if (err?.name === 'AbortError' || !this.active) return;
|
|
5288
5369
|
this._failures++;
|
|
5370
|
+
diag.failed++; diag.lastErr = String(err?.message || err).slice(0, 60);
|
|
5289
5371
|
logDebug(`AI Sub: cloud speech recognition failed (${err.message}${err.detail ? ': ' + err.detail : ''}).`, 'warn');
|
|
5290
5372
|
if (err.status === 401 || err.status === 403 || err.code === 'helper' || this._failures >= 4) TRANSLATOR.cloudAsrFailed(err);
|
|
5291
5373
|
} finally {
|
|
@@ -8729,6 +8811,13 @@ async function handle(m) {
|
|
|
8729
8811
|
background:rgba(16,18,24,0.62); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); box-shadow:0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.14) inset; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,0.8);
|
|
8730
8812
|
opacity:0; transition:opacity 0.25s ease, transform 0.25s ease; pointer-events:auto; }
|
|
8731
8813
|
.nx-mode-card.in { opacity:1; transform:translate(-50%, 0); }
|
|
8814
|
+
.nexus-container.rot select { -webkit-appearance:none; appearance:none; line-height:1.35; padding-right:28px;
|
|
8815
|
+
background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 6px center; background-size:18px; }
|
|
8816
|
+
.nexus-container.rot input[type="range"]:not(.cc-range):not(.cc-volume) { -webkit-appearance:none; appearance:none; height:6px; border-radius:3px; background:rgba(255,255,255,0.28); outline:none; }
|
|
8817
|
+
.nexus-container.rot input[type="range"]:not(.cc-range):not(.cc-volume)::-webkit-slider-thumb { -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%; background:#69f0ae; border:2px solid #0b0f14; }
|
|
8818
|
+
.nexus-container.rot input[type="checkbox"], .nexus-container.rot input[type="radio"] { -webkit-appearance:none; appearance:none; width:18px; height:18px; border-radius:4px; border:2px solid rgba(255,255,255,0.6); background:transparent; vertical-align:middle; }
|
|
8819
|
+
.nexus-container.rot input[type="radio"] { border-radius:50%; }
|
|
8820
|
+
.nexus-container.rot input[type="checkbox"]:checked, .nexus-container.rot input[type="radio"]:checked { background:#69f0ae; border-color:#69f0ae; }
|
|
8732
8821
|
.nx-resume { position:absolute; left:calc(18px + env(safe-area-inset-left, 0px)); bottom:calc(120px + env(safe-area-inset-bottom, 0px)); z-index:2065; display:flex; align-items:center; gap:6px; padding:6px; border-radius:14px;
|
|
8733
8822
|
background:rgba(16,18,24,0.62); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); box-shadow:0 10px 28px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.14) inset;
|
|
8734
8823
|
opacity:0; transform:translateY(12px); transition:opacity 0.25s ease, transform 0.25s ease; pointer-events:auto; }
|
|
@@ -10850,7 +10939,7 @@ async function handle(m) {
|
|
|
10850
10939
|
const root = STATE.isCinema && CINEMA.nexusControls() && CINEMA.applied?.chain?.[0]?.root;
|
|
10851
10940
|
const v = CINEMA.applied?.video;
|
|
10852
10941
|
if (!root || !v || root === v || root.ownerDocument !== document) { this.stop(); return; }
|
|
10853
|
-
if (this._root === root) return;
|
|
10942
|
+
if (this._root === root) { this.scan(); return; } // (also once a second: silence and moves are noticed without a redraw)
|
|
10854
10943
|
this.stop();
|
|
10855
10944
|
this._root = root;
|
|
10856
10945
|
// Scanned again a little later too: the list of the player's text layers is refreshed
|
|
@@ -10867,39 +10956,78 @@ async function handle(m) {
|
|
|
10867
10956
|
clearTimeout(this._timer); this._timer = 0; clearTimeout(this._late);
|
|
10868
10957
|
document.querySelectorAll('.nxu-dsub-src').forEach(n => n.classList.remove('nxu-dsub-src'));
|
|
10869
10958
|
if (this._src && !SUBS.active()) SUBS._render('');
|
|
10870
|
-
this._src = null; this._srcSig = null; this._cands.clear();
|
|
10959
|
+
this._src = null; this._srcSig = null; this._srcParent = null; this._otherAt = 0; clearTimeout(this._otherTimer); this._cands.clear();
|
|
10960
|
+
},
|
|
10961
|
+
// The text the site is showing in it right now. Lines the site keeps in the page but
|
|
10962
|
+
// hides (earlier cues left with display:none) are not read: innerText is what is
|
|
10963
|
+
// rendered. Only inside something this script hid itself is the raw text used.
|
|
10964
|
+
_text(el) {
|
|
10965
|
+
const mine = el.closest('.nxu-site-hide');
|
|
10966
|
+
// (An element the site took out of the layout reports all its text as innerText.)
|
|
10967
|
+
if (!mine && !el.getClientRects().length) return '';
|
|
10968
|
+
const raw = mine ? el.textContent : el.innerText ?? el.textContent;
|
|
10969
|
+
return String(raw || '').replace(/[ \t]+/g, ' ').replace(/\n{2,}/g, '\n').trim().slice(0, 300);
|
|
10871
10970
|
},
|
|
10872
|
-
_text(el) { return String(el.innerText || el.textContent || '').replace(/[ \t]+/g, ' ').replace(/\n{2,}/g, '\n').trim().slice(0, 300); },
|
|
10873
10971
|
scan() {
|
|
10874
10972
|
const root = this._root;
|
|
10875
10973
|
if (!root || !root.isConnected) { this.stop(); return; }
|
|
10876
|
-
if (this._src && this._src.isConnected) { this._show(); return; }
|
|
10877
10974
|
const v = CINEMA.applied?.video;
|
|
10878
10975
|
const cands = new Set();
|
|
10879
10976
|
try { root.querySelectorAll(this.SEL).forEach(el => cands.add(el)); } catch (_) { }
|
|
10880
10977
|
(CINEMA._textLayers || []).forEach(el => cands.add(el));
|
|
10978
|
+
const ok = (el) => el.isConnected && !el.contains(v) && !el.closest('.nxu-cue-mirror') && !el.querySelector('button, input, svg, [role="slider"]');
|
|
10881
10979
|
// Many players (React and the like) draw each line as a new element: candidates are
|
|
10882
10980
|
// followed by their place and look (tag, classes, parent), not by the element itself.
|
|
10883
|
-
const sigOf = (el) => `${el.tagName}|${el.className}|${el.parentElement?.className || ''}|${el.parentElement?.tagName || ''}`;
|
|
10884
|
-
if (this._srcSig) {
|
|
10885
|
-
const tag = this._srcSig.split('|')[0];
|
|
10886
|
-
const again = [...cands, ...root.getElementsByTagName(tag)].find(el => el.isConnected && !el.contains(v) && sigOf(el) === this._srcSig);
|
|
10887
|
-
if (again) { this._src = again; again.classList.add('nxu-dsub-src'); this._show(); return; }
|
|
10888
|
-
if (this._src && !this._src.isConnected) { this._src = null; if (!SUBS.active()) SUBS._render(''); }
|
|
10889
|
-
return;
|
|
10890
|
-
}
|
|
10981
|
+
const sigOf = (el) => `${el.tagName}|${String(el.className).replace(/\s*nxu-[\w-]+/g, '')}|${el.parentElement?.className || ''}|${el.parentElement?.tagName || ''}`;
|
|
10891
10982
|
const now = Date.now();
|
|
10983
|
+
// Every candidate's text changes are noted (subtitles change, titles and watermarks do not).
|
|
10984
|
+
const live = [];
|
|
10892
10985
|
for (const el of cands) {
|
|
10893
|
-
if (!
|
|
10894
|
-
const txt = this._text(el);
|
|
10895
|
-
const
|
|
10896
|
-
const c = this._cands.get(key) || { last: null, changes: [], };
|
|
10986
|
+
if (!ok(el)) continue;
|
|
10987
|
+
const key = sigOf(el), txt = this._text(el);
|
|
10988
|
+
const c = this._cands.get(key) || { last: null, changes: [] };
|
|
10897
10989
|
if (txt !== c.last) { if (c.last !== null) c.changes.push(now); c.last = txt; }
|
|
10898
10990
|
c.changes = c.changes.filter(ts => now - ts < 30000);
|
|
10899
10991
|
this._cands.set(key, c);
|
|
10900
|
-
|
|
10901
|
-
|
|
10992
|
+
live.push({ el, key, txt, c });
|
|
10993
|
+
}
|
|
10994
|
+
const claim = (el, key) => {
|
|
10995
|
+
if (this._src && this._src !== el) this._src.classList?.remove('nxu-dsub-src');
|
|
10996
|
+
this._src = el; this._srcSig = key; this._srcParent = el.parentElement;
|
|
10997
|
+
el.classList.add('nxu-dsub-src');
|
|
10998
|
+
};
|
|
10999
|
+
// 1. The source found before: the same element, one that looks the same, or the new
|
|
11000
|
+
// child of the same parent (a line redrawn with other class names).
|
|
11001
|
+
let src = this._src && this._src.isConnected ? this._src : null;
|
|
11002
|
+
if (!src && this._srcSig) {
|
|
11003
|
+
const tag = this._srcSig.split('|')[0];
|
|
11004
|
+
src = [...cands, ...root.getElementsByTagName(tag)].find(el => ok(el) && sigOf(el) === this._srcSig)
|
|
11005
|
+
|| (this._srcParent?.isConnected ? [...this._srcParent.children].find(el => el.tagName === tag && ok(el) && this._text(el)) : null) || null;
|
|
11006
|
+
if (src) claim(src, this._srcSig);
|
|
11007
|
+
else if (this._src) { this._src = null; }
|
|
11008
|
+
}
|
|
11009
|
+
if (src && !src.classList.contains('nxu-dsub-src')) src.classList.add('nxu-dsub-src'); // a redraw reset its classes
|
|
11010
|
+
if (src && this._text(src)) { this._otherAt = 0; this._show(); return; }
|
|
11011
|
+
// 2. Found before but silent now. If the site meanwhile shows changing text somewhere
|
|
11012
|
+
// else (it redrew its subtitles into another element — after fullscreen, a quality
|
|
11013
|
+
// switch…), follow it there: its subtitles are never left hidden and unshown.
|
|
11014
|
+
if (this._srcSig) {
|
|
11015
|
+
const other = live.find(x => x.el !== src && !(src && (src.contains(x.el) || x.el.contains(src))) && x.txt && x.c.changes.length && now - x.c.changes[x.c.changes.length - 1] < 15000);
|
|
11016
|
+
if (!other) this._otherAt = 0;
|
|
11017
|
+
else if (!this._otherAt) { this._otherAt = now; clearTimeout(this._otherTimer); this._otherTimer = setTimeout(() => this.scan(), 1300); }
|
|
11018
|
+
else if (now - this._otherAt >= 1200) {
|
|
11019
|
+
this._otherAt = 0;
|
|
11020
|
+
claim(other.el, other.key);
|
|
11021
|
+
logDebug('Site subtitles moved to another element; following them.', 'info');
|
|
11022
|
+
this._show();
|
|
11023
|
+
return;
|
|
11024
|
+
}
|
|
11025
|
+
if (!SUBS.active()) SUBS._render('');
|
|
11026
|
+
return;
|
|
10902
11027
|
}
|
|
11028
|
+
// 3. Nothing found yet: two changes of a text within half a minute are subtitles, not a title.
|
|
11029
|
+
const hit = live.find(x => x.c.changes.length >= 2);
|
|
11030
|
+
if (hit) { claim(hit.el, hit.key); logDebug('Site subtitles shown in the NexusSync layer.', 'info'); this._show(); }
|
|
10903
11031
|
},
|
|
10904
11032
|
_show() {
|
|
10905
11033
|
if (SUBS.active()) return; // the user picked other subtitles
|
|
@@ -12781,7 +12909,8 @@ async function handle(m) {
|
|
|
12781
12909
|
volLow: 'M18.5 12A4.5 4.5 0 0 0 16 7.97v8.05A4.47 4.47 0 0 0 18.5 12zM5 9v6h4l5 5V4L9 9H5z',
|
|
12782
12910
|
volOff: 'M16.5 12A4.5 4.5 0 0 0 14 7.97v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12zM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A7 7 0 0 1 14 18.7v2.06a9 9 0 0 0 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4 9.91 6.09 12 8.18V4z',
|
|
12783
12911
|
cc: 'M19 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1zm7 0h-1.5v-.5h-2v3h2V13H18v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1z',
|
|
12784
|
-
|
|
12912
|
+
// A screen with light around it (the sun is the picture/brightness button).
|
|
12913
|
+
ambient: 'M8 9h8v6H8V9zM6 7v10h12V7H6zM11 2h2v3h-2V2zM11 19h2v3h-2v-3zM2 11h3v2H2v-2zM19 11h3v2h-3v-2zM4.2 5.6l1.4-1.4 2.1 2.1-1.4 1.4-2.1-2.1zM16.3 17.7l1.4-1.4 2.1 2.1-1.4 1.4-2.1-2.1zM4.2 18.4l2.1-2.1 1.4 1.4-2.1 2.1-1.4-1.4zM16.3 6.3l2.1-2.1 1.4 1.4-2.1 2.1-1.4-1.4z',
|
|
12785
12914
|
pip: 'M19 11h-8v6h8v-6zm4 8V4.98C23 3.88 22.1 3 21 3H3c-1.1 0-2 .88-2 1.98V19c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H3V4.97h18v14.05z',
|
|
12786
12915
|
fullscreen: 'M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z',
|
|
12787
12916
|
fullscreenExit: 'M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z',
|
|
@@ -12789,7 +12918,7 @@ async function handle(m) {
|
|
|
12789
12918
|
fitCover: 'M3 5v4h2V5h4V3H5a2 2 0 0 0-2 2zm2 10H3v4a2 2 0 0 0 2 2h4v-2H5v-4zm14 4h-4v2h4a2 2 0 0 0 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5a2 2 0 0 0-2-2zM7 7h10v10H7z',
|
|
12790
12919
|
close: 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z',
|
|
12791
12920
|
rotate: 'M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77a1.49 1.49 0 0 0-2.12 0L1.75 8.11a1.49 1.49 0 0 0 0 2.12l12.02 12.02c.59.59 1.54.59 2.12 0l6.36-6.36c.59-.59.59-1.54 0-2.12L10.23 1.75zm4.6 19.44L2.81 9.17l6.36-6.36 12.02 12.02-6.36 6.36zm-7.31.29A10.49 10.49 0 0 1 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32z',
|
|
12792
|
-
view: '
|
|
12921
|
+
view: 'M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zM2 13h2a1 1 0 0 0 0-2H2a1 1 0 0 0 0 2zm18 0h2a1 1 0 0 0 0-2h-2a1 1 0 0 0 0 2zM11 2v2a1 1 0 0 0 2 0V2a1 1 0 0 0-2 0zm0 18v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-2 0zM5.99 4.58a1 1 0 0 0-1.41 1.41l1.06 1.06a1 1 0 0 0 1.41-1.41L5.99 4.58zm12.37 12.37a1 1 0 0 0-1.41 1.41l1.06 1.06a1 1 0 0 0 1.41-1.41l-1.06-1.06zm1.06-10.96a1 1 0 0 0-1.41-1.41l-1.06 1.06a1 1 0 0 0 1.41 1.41l1.06-1.06zM7.05 18.36a1 1 0 0 0-1.41-1.41l-1.06 1.06a1 1 0 0 0 1.41 1.41l1.06-1.06z',
|
|
12793
12922
|
tune: 'M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z',
|
|
12794
12923
|
film: 'M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z',
|
|
12795
12924
|
keyboard: 'M20 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v-2h2v2zm0-3H5V8h2v2zm9 7H8v-2h8v2zm0-4h-2v-2h2v2zm0-3h-2V8h2v2zm3 3h-2v-2h2v2zm0-3h-2V8h2v2z'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kangsicj/nexussync",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.16",
|
|
4
4
|
"description": "Watch-together userscript: media sync, cinema mode, live AI subtitles, chat bubbles and quick ink for Violentmonkey, Tampermonkey and iOS Userscripts.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"userscript",
|