Monday, 1 January 2007

Safari

Safari is the default Mac OS X browser, based on WebKit.

Resources:

Date Link Notes
Jan 28 ClickToFlash A plugin to disable Flash content on a page unless it’s clicked upon
Older Glims a great plugin that adds a full-screen mode, improved search and other niceties.
ForgetMeNot a SIMBL plugin that saves open URLs when you quit Safari and restores them when you re-launch it.
Blocking Ads Using nothing but CSS. My technique of choice for years now.
Pimp My Safari plugins and add-ons

Speeding it up

  • Disable Top Sites (and set the home page to about:blank)
  • Disable RSS polling (the source of some irritating little pauses)
  • Disable “Warn when visiting a fraudulent website” (i.e., no checks for every single URL)
  • Install ClickToFlash

Enabling the Debug Menu:

On Mac OS X open a terminal and enter:

defaults write com.apple.Safari IncludeDebugMenu 1

On Windows, edit C:\Documents and Settings\<em>username</em>\Application Data\Apple Computer\Safari\Preferences.plist and insert a new preference:

<key>IncludeDebugMenu</key><true/>

…or start Safari.exe with /enableDebugMenu or /disableDebugMenu (it updates the.plist, so you only need to do it once).

Safari 4 Hidden Preferences

Copied from here for future reference:

# http://swedishcampground.com/safari-4-hidden-preferences

Having a quick poke through the new Safari binary yields the following strings:
	
	$ strings /Applications/Safari.app/Contents/MacOS/Safari | grep DebugSafari4
	DebugSafari4TabBarIsOnTop
	DebugSafari4IncludeToolbarRedesign
	DebugSafari4IncludeFancyURLCompletionList
	DebugSafari4IncludeGoogleSuggest
	DebugSafari4LoadProgressStyle
	DebugSafari4IncludeFlowViewInBookmarksView
	DebugSafari4TopSitesZoomToPageAnimationDimsSnapshot
	DebugSafari4IncludeTopSites

*NB: Need to restart Safari after changing any of these.*

## DebugSafari4TabBarIsOnTop

This moves the tab bar back where you expect it to be:

	$ defaults write com.apple.Safari DebugSafari4TabBarIsOnTop -bool NO

## DebugSafari4IncludeToolbarRedesign and DebugSafari4LoadProgressStyle

When both set to NO it restores the blue loading bar behind the URL.

	$ defaults write com.apple.Safari DebugSafari4IncludeToolbarRedesign -bool NO
	$ defaults write com.apple.Safari DebugSafari4LoadProgressStyle -bool NO

## DebugSafari4IncludeFancyURLCompletionList

Switches off the new URL autocomplete menu and goes back to the original one.

	$ defaults write com.apple.Safari DebugSafari4IncludeFancyURLCompletionList -bool NO

## DebugSafari4IncludeGoogleSuggest

Turns off the new Google suggest menu.

	$ defaults write com.apple.Safari DebugSafari4IncludeGoogleSuggest -bool NO

## DebugSafari4IncludeFlowViewInBookmarksView

Unknown.

## DebugSafari4TopSitesZoomToPageAnimationDimsSnapshot

Unknown.

## DebugSafari4IncludeTopSites

Disables Top Sites feature completely.

	$ defaults write com.apple.Safari DebugSafari4IncludeTopSites -bool NO

## Undoing changes

Just run the defaults command with the `delete` flag for the appropriate key you wish to delete.

	$ defaults delete com.apple.Safari <key>

See Also

How to Switch to the MacAfter Long Wait, Camino 2.0 Finally Hits The StreetsSerial NumbersThe Hierarchy Of Digital Distractions
OnlifeCitrix XenApp Online Plug-in for Mac - Version 11.000JavaScript InfoVis Toolkit Version 1.1.3Google Reader support
SafariAdSweep - An ad blocker for your favorite web browser (like Adblock)XUL Extensions and Add-OnsSafari 4 Beta
htmlAreaBuilding CoverFlow for Safari on iPhoneMobile SafariOn Apple, Netbooks, and My Line of Work
Less is MoreTale of a NetbookGoogle Chrome, Google's Browser ProjectThe Early Days Of Palm 2.0
Five things that are still broken in browsers, ten years laterdel.icio.usFoxes on fire, and other entertainmentSquirrelFish
InquisitorI, for one, welcome our new diapered overlordsURL TriggerSafari 3.1
Musings on Photo GalleriesEntourage 2008 ReviewAn update on my RSS setupTabulate
Fluid - Free Site Specific Browser for Mac OS X LeopardOutsourcing My StuffA Month Of Seeing SpotsDonate to Camino
Hear The Leopard Spots RoarJavaScript Tune UpsThe Python Grimoire, DustedRadar Bugs I'd Like To See
A Bank That "Gets" OnlineAd Blocking via userContent.cssCSSForm Above Substance
Three in a RowDragging this site ever closer to XHTMLOnline Game: BrickShooteriUI Music Demo
iMusings - the iPhone, Standards, and jQueryiPhone - From Announcement To LaunchiPhoneyBlink
Post-Keynote NotesThe Trojan Aqua HorseFlashThe Cat With Nine Lives
Wiki Editing, Mind Maps and UsenetShiny ToysFlash 9 StupidityGeek Mode
The New Portuguese ID Card - and MacsAh, The Wonderful InternetThe Grill is OpenPulling a Mario
iPhone UpdatesThe iPhone, At Long LastThe StealthBookSunny
Growl Notifications On Your Ubuntu DesktopTaming my RSS feeds, the Bayesian wayPicLensTemporarily Out of Order
Google Apps For Your Domain, and SpamThe Biz, ReloadedNew Blackberry software for MacMailArchive.py
Google/Reader - Nearly There, Nearly There...Tag, You're ItBacklogCasual Debunking
Mac OS XMail Hiatus.Mac's Missed OpportunitiesYojimbo on the Cheap
LaggingApple Jam RecipesWebKitSIMBL
The MacBook Has Landed.The Razor-Thin Mobile ComputerGoogle Maps Goes EuropeanEaster Break
The Citrix Dashboard WidgetPlaceless GTDIceRocket Idiocy AlertCorporate Thought Of The Day
BoostedThe Borg...Do Not DisturbPost-Dinner Reading
iSyncMinor Photography UpdatePressure CookerWindows
Morning News BreakMacBooks and Other Happenings - The SequelMacBooks and Other HappeningsMiscellaneous Hacktivity
Google/MapsQuills and Web 2.0Steady10.4.3 Odds and Ends
Post-10.4.3Tick TockPatently AbsurdPSPWare
Stuff to ReadCamino, AgainCould We Have Real Collaboration, Please?And Now, The Real News: iPod nano
Mid-Week PauseBack to WorkSummer CleaningGeotagging
Take TwoIs Mac OS X Becoming Crufty?Random NewsRSS
Real NewsLink ModeFive Almost-Killer Applications in Tablet FormA Few Other Tiger Notes
Saturday Night CodingSaturday Morning ReadingLink Mode, Take 24 and a HalfMail.app 0.2
Link ModeMonday ModeTaming TigerThe Pint-Sized Tiger
The Markup Thing, Rails, and Other Musings10.3.9 - Safari in Uncharted LandsOuch...Catching Up
P2P.icio.usThree(ish) ThingsTerminal.app is not your grandfather's VT100 terminalThings That Go Dump In The Night
Still Catching UpNews, in a NutshellTen Open Source Projects Worth Keeping Track OfPowerPoint Monday
Who Needs Flickr, Anyway?Miscellaneous CodingComing up this weekKubrick Phase Two
DowserLink DumpThat Bird, by Thunder!Arcane Uses of JavaScript
AcidSearchNLSU2 BootstrappingThe Widest Desktop On EarthCliffhanging
Linking SpreePithHelmetRandom Bouts of GeeknessCoralizing Your Site
Bigger, Better, FasterReturn Of The LinksServicesHardware/PowerMate
GmailThe Mouse, Done RightWhy Netcabo SucksNo Time, Some Links
SkepticismMonday RushSaftParadigm Shift
Merry SneezeHOWTO: Enable Rendezvous on Fedora LinuxUnobtrusive TechDabbling in Flash
Dancing With RendezvousCutting CornersPanther in the OfficeThe Panther Needs a Manicure?
Firebird 0.7.1 for MacBrilliant Hack Of The DayPalm LaunchesMac OS X 10.2.8
Tricks for Surviving DNS HellMicrosoft vs Eolas UpdatePhoto Log RevampedNew Photo Album
So You Think Mobile Blogging is Cool?Zen By Any Other NameThe Box Model Hack, CSS, and my Vanishing Tolerance For IE BugsURL
WWDC NewsGeeks In The MistChanging FormatApple and Toast Patches
New Apple JavaWork In ProgressWorking WeekendNotes on SteveJobs' Keynote