you are here: codestackercodes [RSS] → tag safari [RSS]

hide address bar in safari mobile

this code lets you hide the address bar in safari mobile. your webapp will look like a native one.

<body onload="window.scrollTo(0, 1)">

uninstall cooliris for safari

cooliris is a nice app, but has no utility.

source: http://discussions.apple.com/thread.jspa?threadID=1730494&tstart=0

tell application "Safari" to quit
do shell script "rm -rf ~/Library/Preferences/com.cooliris.safariplugin.plist" with administrator privileges
do shell script "rm -rf ~/Library/Application\\ Support/Cooliris/" with administrator privileges and password
do shell script "rm -rf /Library/Receipts/cooliriswebkitplugin.pkg" with administrator privileges and password
do shell script "rm -rf /Library/Receipts/cooliris.pkg" with administrator privileges and password
do shell script "rm -rf /Library/Internet\\ Plug-Ins/CoolirisWebKitPlugin.plugin" with administrator privileges and password
do shell script "rm -rf /Library/InputManagers/Cooliris/" with administrator privileges and password
display dialog "Cooliris files are deleted." buttons {"Quit"} default button 1 cancel button "Quit"

remove the mac os x glowing blue outline for input fields

input:focus { outline: none; }

safari single window mode

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
Displaying all 4 Code