-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
是否能在手机端登录时默认进入桌面版? #90
Comments
这个是根据浏览器的User Agent来判断是桌面还是手机,然后写入cookie。 |
写了一个简单的js, 移动端打开页面时设置cookie, 这样一直都是桌面版界面 |
大佬666。 |
把那些js代码复制到我那个js下面试试 |
我把来自Toggle Mobile Vew的相关代码复制到了你的
并且把相关原js笔记都设置为了#disabled:run,但好像没有效果。还有需要刷新才能进入桌面版的问题,要是没有直接的解决方案就先搁置算了,以后我慢慢钻研 |
Mobile View问题解决了!原来是应该用#run=frontendStartup而非mobileStartup,因为你的操作生效之后实际上就是桌面版了。然后我在想不管出于什么原因导致我需要刷新一次你的脚本才能生效,有没有api可以直接实现 |
直接刷新整个页面?
|
有效!谢谢佬 |
佬,在用Mobile View这个插件方便手机操作,但是发现手机登录时会默认使用“移动版”(PC登录服务器会默认为“桌面版”,PC软件则没有“移动版/桌面版”选项),然后每次就需要先“切换到桌面版”再用插件“Toggle Mobile View”,很麻烦。插件也许可以通过设置#run=mobileStartup控制,但是怎么样实现手机登录默认为“桌面版”呢?
感谢!
The text was updated successfully, but these errors were encountered: