Can I over-ride CSS with user-css on Mobile Safari?

前端 未结 4 1307
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 12:25

I am trying to modify the CSS of the website http://www.baomoi.com for my grandmother. I\'d like to modify the CSS for easier readability for her and to make it more minimal

4条回答
  •  没有蜡笔的小新
    2021-01-02 13:17

    The desktop Safari stores these two values into defaults read com.apple.safari:

    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "~/custom.css";
    

    I tried adding these preferences to the Mobile Safari property list, but they don't work:

    (can check the preferences using ``plutil```):

    $ plutil -show /private/var/mobile/Library/Preferences/com.apple.mobilesafari.plist
    $ plutil -show /private/var/mobile/Library/Preferences/com.apple.Preferences.plist
    

    This would be the best solution, if only it worked. So it seems custom CSS support is not compiled into MobileSafari.

提交回复
热议问题