How to switch off subpixel antialiasing in Safari?

Solution 1:

Save this with a .css extension somewhere and select it as the custom stylesheet in Preferences > Advanced:

html {
    -webkit-font-smoothing: antialiased;
}

defaults write com.apple.Safari AppleFontSmoothing -int 0 would also disable subpixel rendering in the UI.