From Indie IT Wiki
Jump to: navigation, search

The following are applicable to Safari running on Apple OS X.


Web Page Source Code

Safari > Preferences > Advanced > Enable Develop View > Develop > Show Page Source


DNS Prefetching

If you find webpages are either loading slowly or corrupting try altering DNS prefetching to see if it makes a difference.

defaults write WebKitDNSPrefetchingEnabled -boolean false

To revert:

defaults write WebKitDNSPrefetchingEnabled -boolean true

Tool Tips

defaults write WebKitShowsURLsInToolTips 0

Password Saving

  • Open the Safari browser on your computer
  • Then click on the Safari tab in the top menu bar of your Mac and from the drop down menu click on Preferences.
  • On the next screen, click on the AutoFill tab and then Uncheck the option for User Names and Passwords.


Debug Menu

defaults write IncludeDebugMenu 1

To revert the behaviour run again changing 1 to 0

Open All Links In New Tabs

In a terminal:

defaults write TargetedClicksCreateTabs -bool TRUE

To revert the behaviour run again changing YES to NO

Show Status Bar

defaults write ShowStatusBar -boolean true

To revert:

defaults write ShowStatusBar -boolean false


History Limits

The history limits in Safari can either be set by the number of items or by time:

defaults write WebKitHistoryItemLimit 2000


defaults write WebKitHistoryAgeInDaysLimit 30


Emptying Cache On OS X

See this article.

Keyboard Shortcuts

Jump To Top Or Bottom Of A Page

  • Top of page - Function+Left Arrow
  • Bottom of page - Function+Right Arrow

These shortcuts should works with most non-editable and some editable pages. For example, with the new Photos app and iTunes, along with Chrome, Firefox and Safari. Also when editing a document in LibreOffice but not when editing a page in Google Drive.

  • Top of page - Command+Up Arrow
  • Bottom of page - Command+Down Arrow

These shortcuts work with Chrome, Firefox and Safari and when editing a page in LibreOffice and Google Drive, but not work with Photos or iTunes.

Thanks to CNET