magicrew-auth 0.3.14 → 0.3.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.
@@ -126,8 +126,8 @@ export function makeMethods(c) {
126
126
  url,
127
127
  ...(session ? { opened: true } : {}),
128
128
  instructions: session
129
- ? "浏览器已打开官方登录页 —— 用你平时的方式登进去,这个窗口会自动继续,不用回来点任何东西。"
130
- : `没能自己拉起浏览器${why ? `(${why})` : "(本机没找到 Chrome / Edge)"},已改用系统浏览器打开登录页。\n登录完成后,在页面里按 F12 → Console 粘这一行:\n${CLIP_HINT}`,
129
+ ? `已用 ${session.name || "浏览器"} 打开官方登录页 —— 用你平时的方式登进去,这个窗口会自动继续,不用回来点任何东西。`
130
+ : `没能自己拉起浏览器${why ? `(${why})` : "(本机没找到 Chrome / Edge / 360 等 Chromium 内核浏览器)"},已改用系统浏览器打开登录页。\n登录完成后,在页面里按 F12 → Console 粘这一行:\n${CLIP_HINT}`,
131
131
  method: "auto",
132
132
  async callback() {
133
133
  let got = null
@@ -34,11 +34,28 @@ function roots() {
34
34
  const h = homedir()
35
35
  if (process.platform === "win32") {
36
36
  const local = process.env.LOCALAPPDATA || join(h, "AppData", "Local")
37
+ const roaming = process.env.APPDATA || join(h, "AppData", "Roaming")
37
38
  return [
39
+ // ── 国际主流 ──
38
40
  ["Edge", join(local, "Microsoft", "Edge", "User Data")],
39
41
  ["Chrome", join(local, "Google", "Chrome", "User Data")],
40
42
  ["Brave", join(local, "BraveSoftware", "Brave-Browser", "User Data")],
41
43
  ["Chromium", join(local, "Chromium", "User Data")],
44
+ ["Vivaldi", join(local, "Vivaldi", "User Data")],
45
+ // ── 国产 Chromium 系 ──
46
+ // ⚠ 2026-10-28 实测:用户日常用的是 360 极速浏览器 X(360ChromeX),
47
+ // 它的 localStorage 里确实有 www.letsmagic.cn 的记录。
48
+ // 不加这一行,「本机浏览器已登录就直接认」这条首选路径对它永远不生效 ——
49
+ // 用户明明在网页上登着,插件却还要他再登一次。
50
+ ["360极速浏览器X", join(local, "360ChromeX", "Chrome", "User Data")],
51
+ ["360浏览器", join(local, "360Chrome", "Chrome", "User Data")],
52
+ ["360安全浏览器", join(roaming, "secoresdk", "360se6", "User Data")],
53
+ ["QQ浏览器", join(local, "Tencent", "QQBrowser", "User Data")],
54
+ ["搜狗浏览器", join(local, "SogouExplorer", "User Data")],
55
+ ["2345浏览器", join(local, "2345Explorer", "User Data")],
56
+ ["猎豹浏览器", join(local, "liebao", "User Data")],
57
+ ["UC浏览器", join(local, "UCBrowser", "User Data")],
58
+ ["夸克浏览器", join(local, "Quark", "User Data")],
42
59
  ]
43
60
  }
44
61
  if (process.platform === "darwin") {
@@ -47,6 +64,7 @@ function roots() {
47
64
  ["Edge", join(h, "Library/Application Support/Microsoft Edge")],
48
65
  ["Brave", join(h, "Library/Application Support/BraveSoftware/Brave-Browser")],
49
66
  ["Chromium", join(h, "Library/Application Support/Chromium")],
67
+ ["Vivaldi", join(h, "Library/Application Support/Vivaldi")],
50
68
  ]
51
69
  }
52
70
  return [
@@ -54,6 +72,7 @@ function roots() {
54
72
  ["Chromium", join(h, ".config/chromium")],
55
73
  ["Edge", join(h, ".config/microsoft-edge")],
56
74
  ["Brave", join(h, ".config/BraveSoftware/Brave-Browser")],
75
+ ["Vivaldi", join(h, ".config/vivaldi")],
57
76
  ]
58
77
  }
59
78