@kangsicj/nexussync 1.6.14 → 1.6.15

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.
@@ -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.14
11
+ // @version 1.6.15
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 *://*/*
@@ -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.14
11
+ // @version 1.6.15
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.14';
49
+ const NXU_VERSION = '1.6.15';
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.14';
54
+ const NXU_RANK = '11.6.15';
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 또는 유저스크립트 메뉴로 복원)',
@@ -1484,7 +1484,10 @@ async function handle(m) {
1484
1484
  const barX = (vw - Math.min(vw, vh * ar)) / 2, barY = (vh - Math.min(vh, vw / ar)) / 2;
1485
1485
  const want = Math.round(Math.min(vw, vh) * 0.045);
1486
1486
  bars = barX >= 2 || barY >= 2;
1487
- if (barX < want && barY < want) inset = want;
1487
+ // Phones: the picture is never made smaller for the glow (switching the
1488
+ // glow off then looked like "fill screen" had been turned on).
1489
+ const phone = Math.min(view.screen?.width || vw, view.screen?.height || vh) < 500;
1490
+ if (barX < want && barY < want && !phone) inset = want;
1488
1491
  }
1489
1492
  visible = fit === 'contain' && (bars || inset > 0 || !ar);
1490
1493
  root.style.setProperty('--nxu-stage-x', inset + 'px');
@@ -2162,6 +2165,7 @@ async function handle(m) {
2162
2165
  const sideways = this._cand !== 0;
2163
2166
  this._apply(0);
2164
2167
  this.manual = false;
2168
+ this.pinned = false;
2165
2169
  this.autoCinema = false;
2166
2170
  if (sideways) this.suppress = true;
2167
2171
  }
@@ -2195,7 +2199,7 @@ async function handle(m) {
2195
2199
  if (side) this._lastSide = side;
2196
2200
  // Turned on with ↻: stays in landscape, but follows the phone to the other side
2197
2201
  // (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; }
2202
+ if (this.manual) { if (side && this.deg && side !== this.deg && !this.pinned) this._apply(side); return; }
2199
2203
  if (!side) {
2200
2204
  this.suppress = false;
2201
2205
  if (this.deg) this._leave();
@@ -2219,18 +2223,29 @@ async function handle(m) {
2219
2223
  if (STATE.isCinema) CINEMA.set(false, { silent: true });
2220
2224
  }
2221
2225
  },
2222
- // ↻ button: turn now (to the last side the phone was held), or back to upright.
2226
+ // ↻ button: each tap goes on — sideways one way (the side the phone was last held),
2227
+ // sideways the other way, upright again — so the picture can be watched with either
2228
+ // edge of the phone down. A side picked with the second tap stays (tilt does not flip it).
2223
2229
  toggleManual() {
2224
2230
  this.requestAccess(true);
2231
+ if (this.deg && this.manual && !this.pinned) {
2232
+ this.pinned = true;
2233
+ this._apply(-this.deg);
2234
+ showToast(t('rotateOther'));
2235
+ return;
2236
+ }
2225
2237
  if (this.deg) {
2226
2238
  this.manual = false;
2239
+ this.pinned = false;
2227
2240
  if (this._cand) this.suppress = true;
2228
2241
  this._leave();
2229
2242
  return;
2230
2243
  }
2231
2244
  if (!STATE.isCinema) { CINEMA.set(true, { silent: true }); if (!STATE.isCinema) return; }
2232
2245
  this.manual = true;
2246
+ this.pinned = false;
2233
2247
  this._apply(this._cand || this._lastSide || 90);
2248
+ if (this._perm === 'granted') showToast(t('rotateOnce')); // (a refused motion prompt has its own notice)
2234
2249
  },
2235
2250
  _apply(deg) {
2236
2251
  this.deg = deg;
@@ -4241,6 +4256,7 @@ async function handle(m) {
4241
4256
  return;
4242
4257
  }
4243
4258
  if (token !== this._startToken) return;
4259
+ CLOUD_ASR.boost = !this.webMediaStream; // listening through the microphone
4244
4260
  if (this._cloud && !(this.audioContext && this.audioNodes?.mix && CLOUD_ASR.start(this.audioContext, this.audioNodes.mix))) {
4245
4261
  this._cloud = false;
4246
4262
  logDebug('AI Sub: cloud recognition needs an audio input here; using browser recognition.', 'warn');
@@ -4298,6 +4314,7 @@ async function handle(m) {
4298
4314
  '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
4315
  'levels: video ' + Math.round((this._levels?.media || 0) * 400) + ' · mic ' + Math.round((this._levels?.mic || 0) * 400),
4300
4316
  '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),
4317
+ ...(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
4318
  '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
4319
  ];
4303
4320
  return lines.join('\n');
@@ -5155,6 +5172,7 @@ async function handle(m) {
5155
5172
  _seq: 0, _next: 1, _results: new Map(), _inflight: new Set(), _failures: 0,
5156
5173
  level: 0,
5157
5174
 
5175
+ boost: false, gain: 1, diag: { sent: 0, answered: 0, empty: 0, failed: 0, lastMs: 0, lastText: '' },
5158
5176
  start(ctx, inputNode) {
5159
5177
  this.stop();
5160
5178
  if (!ctx || !inputNode || typeof ctx.createScriptProcessor !== 'function') return false;
@@ -5166,7 +5184,8 @@ async function handle(m) {
5166
5184
  sink.connect(ctx.destination);
5167
5185
  node.onaudioprocess = (e) => { if (this.active) this._onAudio(e.inputBuffer.getChannelData(0), ctx.sampleRate); };
5168
5186
  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 });
5187
+ _voicedRun: 0, _voiced: 0, _silence: 0, _floor: 0.004, _seq: 0, _next: 1, _failures: 0, _peak: 0.02, gain: 1,
5188
+ diag: { sent: 0, answered: 0, empty: 0, failed: 0, lastMs: 0, lastText: '' } });
5170
5189
  this._results.clear();
5171
5190
  return true;
5172
5191
  },
@@ -5205,12 +5224,26 @@ async function handle(m) {
5205
5224
  }
5206
5225
  this._carry = Float32Array.from(buffer.slice(offset));
5207
5226
  },
5227
+ // Quiet input is brought up before the voice gate: a phone's microphone listening to its
5228
+ // own speaker (no gain control, no echo canceller) delivers the video at well under
5229
+ // the gate's level, so nothing was ever sent. The gain follows the loudest recent
5230
+ // sound (about 7 s memory); up to ×40 for a microphone, ×6 for the video's own track.
5231
+ _autoGain(frame, rms) {
5232
+ this._peak = Math.max(rms, (this._peak || 0.02) * 0.998);
5233
+ const want = Math.min(this.boost ? 40 : 6, Math.max(1, 0.08 / Math.max(this._peak, 1e-5)));
5234
+ this.gain = (this.gain || 1) * 0.9 + want * 0.1;
5235
+ if (this.gain < 1.05) return rms;
5236
+ const g = this.gain;
5237
+ for (let i = 0; i < frame.length; i++) { const x = frame[i] * g; frame[i] = x > 1 ? 1 : x < -1 ? -1 : x; }
5238
+ return Math.min(1, rms * g);
5239
+ },
5208
5240
  _frame(frame) {
5209
5241
  let sum = 0;
5210
5242
  for (let i = 0; i < frame.length; i++) sum += frame[i] * frame[i];
5211
- const rms = Math.sqrt(sum / frame.length);
5243
+ let rms = Math.sqrt(sum / frame.length);
5212
5244
  if (!Number.isFinite(rms)) return;
5213
5245
  this.level = rms;
5246
+ rms = this._autoGain(frame, rms);
5214
5247
  const threshold = Math.max(0.007, this._floor * 3 + 0.002);
5215
5248
  if (!this._speaking) {
5216
5249
  // Track background noise only while nobody speaks.
@@ -5276,6 +5309,8 @@ async function handle(m) {
5276
5309
  this._inflight.add(ctrl);
5277
5310
  const seconds = (frames.length * 0.02).toFixed(1);
5278
5311
  let text = '';
5312
+ const diag = this.diag, began = Date.now();
5313
+ diag.sent++;
5279
5314
  try {
5280
5315
  if (AI.asrProvider() === 'local') {
5281
5316
  const pcm = new Float32Array(frames.reduce((n, f) => n + f.length, 0));
@@ -5283,9 +5318,12 @@ async function handle(m) {
5283
5318
  text = await LOCAL_WHISPER.transcribe(pcm, baseLang(TRANSLATOR._recognitionLanguage()));
5284
5319
  } else text = await AI.transcribe(this._wav(frames), { lang: baseLang(TRANSLATOR._recognitionLanguage()), prompt: [glossaryTerms().join(', '), TRANSLATOR._cloudPrompt].filter(Boolean).join('. '), signal: ctrl.signal });
5285
5320
  this._failures = 0;
5321
+ diag.lastMs = Date.now() - began;
5322
+ if (text) { diag.answered++; diag.lastText = text.slice(0, 40); } else diag.empty++;
5286
5323
  } catch (err) {
5287
5324
  if (err?.name === 'AbortError' || !this.active) return;
5288
5325
  this._failures++;
5326
+ diag.failed++; diag.lastErr = String(err?.message || err).slice(0, 60);
5289
5327
  logDebug(`AI Sub: cloud speech recognition failed (${err.message}${err.detail ? ': ' + err.detail : ''}).`, 'warn');
5290
5328
  if (err.status === 401 || err.status === 403 || err.code === 'helper' || this._failures >= 4) TRANSLATOR.cloudAsrFailed(err);
5291
5329
  } finally {
@@ -8729,6 +8767,13 @@ async function handle(m) {
8729
8767
  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
8768
  opacity:0; transition:opacity 0.25s ease, transform 0.25s ease; pointer-events:auto; }
8731
8769
  .nx-mode-card.in { opacity:1; transform:translate(-50%, 0); }
8770
+ .nexus-container.rot select { -webkit-appearance:none; appearance:none; line-height:1.35; padding-right:28px;
8771
+ 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; }
8772
+ .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; }
8773
+ .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; }
8774
+ .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; }
8775
+ .nexus-container.rot input[type="radio"] { border-radius:50%; }
8776
+ .nexus-container.rot input[type="checkbox"]:checked, .nexus-container.rot input[type="radio"]:checked { background:#69f0ae; border-color:#69f0ae; }
8732
8777
  .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
8778
  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
8779
  opacity:0; transform:translateY(12px); transition:opacity 0.25s ease, transform 0.25s ease; pointer-events:auto; }
@@ -12781,7 +12826,8 @@ async function handle(m) {
12781
12826
  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
12827
  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
12828
  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
- ambient: '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',
12829
+ // A screen with light around it (the sun is the picture/brightness button).
12830
+ 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
12831
  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
12832
  fullscreen: 'M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z',
12787
12833
  fullscreenExit: 'M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z',
@@ -12789,7 +12835,7 @@ async function handle(m) {
12789
12835
  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
12836
  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
12837
  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: 'M20 15.31 23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z',
12838
+ 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
12839
  tune: 'M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z',
12794
12840
  film: 'M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z',
12795
12841
  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.14",
3
+ "version": "1.6.15",
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",