change default fonts

Prior to Mojave, I was able to use the following commands to change the default font in Safari:


defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2StandardFontFamily 'Helvetica'

defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2DefaultFontSize 14


These commands no longer work. Something has changed. Does anyone know what the new Terminal commands are that will work with 10.14?

I've been able to achieve the same result by using a user style sheet.
Create a text file in a safe place with the following contents:

Code Block
body { 
  font-family: "Helvetica"; 
font-size: 14px;
}

Let's say you named it mystyle.css

Then, in Safari go to Preferences... -> Advanced

Click on the Style sheet pop-up menu, and select Other...
Show Safari where mystyle.css is in the file dialog that opens.
You should see instant results.

change default fonts
 
 
Q