Safari

From Indie IT Wiki
Jump to: navigation, search

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

HOWTO: VIEW:

Web Page Source Code

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

HOWTO: DISABLE:

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 com.apple.safari WebKitDNSPrefetchingEnabled -boolean false

To revert:

defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean true

Tool Tips

defaults write com.apple.Safari 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.

HOWTO: ENABLE:

Debug Menu

defaults write com.apple.Safari IncludeDebugMenu 1

To revert the behaviour run again changing 1 to 0

Open All Links In New Tabs

In a terminal:

defaults write com.apple.Safari TargetedClicksCreateTabs -bool TRUE

To revert the behaviour run again changing YES to NO

Show Status Bar

defaults write com.apple.Safari ShowStatusBar -boolean true

To revert:

defaults write com.apple.Safari ShowStatusBar -boolean false

HOWTO: MODIFY:

History Limits

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

defaults write com.apple.Safari WebKitHistoryItemLimit 2000

or

defaults write com.apple.Safari WebKitHistoryAgeInDaysLimit 30

INFO:

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