V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
dismory

Open in Chrome for iOS

  •  
  •   dismory ·
    dismory · Jun 30, 2012 · 4460 views
    This topic created in 5062 days ago, the information mentioned may be changed or developed.
    http://www.v2ex.com/t/40983?javascript:function%20openInChrome()%7Bvar%20URL=window.location.href;URL=URL.replace("http://","googlechrome://");URL=URL.replace("https://","googlechrome://");window.location=URL;%7D;openInChrome();

    在 Mobile Safari 中打开上述链接后存为书签,再编辑书签删掉 javascript: 前的所有字符,保存即可。

    不过现阶段没找到跳转后保留 https scheme 的方式。
    4 replies    1970-01-01 08:00:00 +08:00
    dismory
        1
    dismory  
    OP
       Jun 30, 2012
    转义有一些问题

    JS 源码如下

    http://gist.github.com/3021800
    romoo
        2
    romoo  
       Jun 30, 2012
    可以有办法 Add Home Screen 以后,改用 Chrome 访问吗?
    dismory
        3
    dismory  
    OP
       Jun 30, 2012
    @romoo 不清楚,你存之前改下 Scheme 试试?
    romoo
        4
    romoo  
       Jun 30, 2012
    @dismory 可惜 Add to Home Screen 只能改 Title 不能改 Url。

    如果越狱的话,安装 BrowserChooser 可以把 Chrome 改为默认浏览器,但是 Home Screen Shortcut 还是没法更改。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3022 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:33 · PVG 15:33 · LAX 00:33 · JFK 03:33
    ♥ Do have faith in what you're doing.