safariomnibar port for powerpc 13. Jan 2012
I did a port of Olivier Poitrey’s SafariOmnibar for Macs with PowerPC processor running Safari 5.0.6 on Mac OS 10.5.8. Go ahead and grab the current version over at Github.
really empty the safari cache 11. Oct 2011
After telling Safari to empty the cache I wondered If Safari actually did what I told it.
$ du -sh ~/Library/Caches/com.apple.safari
629M /Users/stefan/Library/Caches/com.apple.safari
Hm, 626 megabyte don’t look like obedience to me. Let’s see what’s in there.
$ du -sh ~/Library/Caches/com.apple.safari/*
173M /Users/stefan/Library/Caches/com.apple.safari/Cache.db
5.6M /Users/stefan/Library/Caches/com.apple.safari/Extensions
450M /Users/stefan/Library/Caches/com.apple.safari/Webpage Previews
64K /Users/stefan/Library/Caches/com.apple.safari/com.apple.opencl
450 megabyte of “Webpage Previews”?
$ find ~/Library/Caches/com.apple.safari/Webpage\ Previews -type f \
| sed -E 's/.*\.([^\.]*)/\1/' | sort | uniq -c
7016 jpeg
400 png
No wonder we need gigabyte sized hard disks today. Let’s delete the crap altogether.
$ rm -r ~/Library/Caches/com.apple.safari
And let’s make sure it doesn’t come back (works in Safari 5.0.3).
$ defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
So, what have we gained after restarting Safari?
$ du -sh ~/Library/Caches/com.apple.safari | awk '{print $1}'
3.6M
Nice, especially in times of undersized solid state disks.
downgrade safari 5.1 to 5.0.x on lion 11. Oct 2011
If you want to downgrade Safari 5.1 to Safari 5.0.x on Lion you can download Safari 5.0.3 from the original Apple servers and extract just the Browser with Pacifist. The installation image is called Safari5.0.3SnowLeopard.dmg but it works just fine on Lion. Have fun!
my minimalist google stylesheet 01. Jun 2011

/* Titelleiste, Navigationsspalte, Logo und Vorschläge ausblenden */
div#mngb,
div#leftnav,
div#sfcnt form div div a,
div#botstuff
{display:none;}
/* Linken Seitenabstand einstellen */
div#sfcnt,
div#center_col,
div#subform_ctrl
{margin-left: 20px ! important;}
div.tsf-p
{margin-left:0px ! important;}
/* Überflüssiges Padding und Rahmen entfernen */
div.med
{padding: 0px ! important;}
div#center_col
{padding: 0px ! important;
border-left: 0px ! important;}
Ich empfehle in diesem Zusammenhang die User CSS-Extension für Safari.
a typical browsing session of mine 18. Mar 2011
