HeaderEditor icon indicating copy to clipboard operation
HeaderEditor copied to clipboard

[Question] Only work on html, not on follows js.

Open Erimus-Koo opened this issue 2 years ago • 0 comments

Target

keep using mobile mode visit Discord.com
希望 Discord 一直是移动版页面

Process

  • Set mobile user agent of Discord.
  • Request UA of the main HTML file changed to mobile. ✅
  • But the request UA of the following js files is still Mac, not changed. ❎
  • discord.com display as PC mode.

中文

  • 给 discord.com (domain) 设置移动版 UA
  • 查看 network,html 的 request UA 变成了移动版 ✅
  • 但后续的 js 文件的 UA 还是 PC 的 ❎
  • 估计 discord 可能是用 js 来判断版本的,于是还是现实为 PC 版
  • 如果用 chrome 的 network conditions 设置 UA,是可以一直保持移动版的,但那个设置不太方便。

Erimus-Koo avatar Jul 28 '23 03:07 Erimus-Koo