wweir
V2EX  ›  macOS

把 Safari 的默认 user-agent 换成 iPad , 感觉爽多了

  •  
  •   wweir · Oct 9, 2017 · 9243 views
    This topic created in 3313 days ago, the information mentioned may be changed or developed.

    不然每次碰到带 flash 的网站,都得手工改,太麻烦了。

    defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A356 Safari/604.1\"" #iPhone
    defaults write com.apple.Safari CustomUserAgent "\"Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.32 (KHTML, like Gecko) Version/11.0 Mobile/15A337 Safari/604.1\"" # iPad
    
    5 replies  •  2017-10-10 19:51:50 +08:00
    Thiece
    Thiece
    Oct 9, 2017
    1
    人生苦短,我用 chrome
    livc
    livc
    Oct 9, 2017❤️1
    2
    手动改啥? mac 的 Safari 是默认 block flash 的吧?我都是再用 chrome 打开。。。
    wweir
    wweir
    OP
    Oct 9, 2017 via Android
    3
    @Thiece
    @livc
    chrome 有发热问题。某些直播网站,用 ppapi 的 flash 还打不开。
    另外有些网站,拿 iPad 的 ua 访问是有特权的
    minamike
    minamike
    Oct 9, 2017 via iPhone
    4
    用 click to plugin for china 无所畏惧
    bjzhou1990
    bjzhou1990
    Oct 10, 2017
    5
    Safari 的 ua 不是在开发菜单里可以设置吗, 干嘛用命令那么麻烦
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2951 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:33 · PVG 19:33 · LAX 03:33 · JFK 06:33
    ♥ Do have faith in what you're doing.