Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Access all Google Docs features from Safari Web Browsers
If you are a user of Google docs (and other such Google apps) and you prefer Safari as your default browser, you will know that lots of features are lost because Safari is not a supported browser. Firefox, however, is fully supported.

If you enable the Develop menu in Safari, as covered in this hint, however, you can fix the problem. After enabling the menu, just select Develop » User Agent , and select one of the Firefox entries (2.0.x Mac, for instance), you will find that all features are enabled.

[robg adds: I'm not a huge user of Google's apps. I did, however, run a quick test with the Presentations module, and this trick certainly seemed to work. Before making the switch, I was warned that Safari wasn't fully supported, and that warning went away after changing the user agent. I also exchanged emails with the hint's author, and he states that he's not yet found an issue with a feature not working in Safari.]
  Post a comment  •  Comments (5)  
  • Currently 2.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[16,431 views]  View Printable Version
Access iPhone-only web pages with Safari Web Browsers
Many web sites now have pages especially formatted for the iPhone, enabled by detecting the "user agent" for the iPhone Safari browser. You can easily visit these pages with your desktop or laptop version of Safari.

First, enable the Develop menu (as indicated in the earlier hint; it used to be called the Debug menu). Then, from the new Develop menu, select User Agent » Mobile Safari x.x.x - iPhone. Try it on Google, for example, and you'll get the right-sized iPhone Google pages. Cool.

[robg adds: Most browsers include some method of setting the user agent, so you can view iPhone-only sites in pretty much any browser you want to use.]
  Post a comment  •  Comments (7)  
  • Currently 2.29 / 5
  You rated: 2 / 5 (7 votes cast)
 
[12,449 views]  View Printable Version
Run Google searches by date via a bookmarklet Web Browsers
I haven't noticed it before, but you can add an as_qdr parameter to the end of a URL in Google to get a drop-down menu (next to the search box) that lets you search by date. For example:

http://www.google.com/search?&q=macosxhints&as_qdr=d

So I wrote this bookmarklet that does that automatically:
javascript:window.open(document.URL + "&as_qdr=d")
You can customize it as you please:
  • d[number]: past number of days (e.g.: d10)
  • w[number]: past number of weeks
  • y[number]: past number of years
More info on this can be found in this post on the Google Operating System site.
  Post a comment  •  Comments (4)  
  • Currently 1.86 / 5
  You rated: 2 / 5 (7 votes cast)
 
[7,460 views]  View Printable Version
Reorder Firefox 3 toolbar bookmarks within their menus Web Browsers
We all know that you can create folders in Firefox (I'm using Firefox 3's public beta) into which bookmarks may be placed; this aids in organization and, when these folders are placed into the bookmarks toolbar, they consume less space as the bookmarks now appear in little menus.

I discovered that you may actually drag the bookmarks that are in these Bookmarks Toolbar menus right in the menu and reorder them with having to actually open the Bookmarks dialog. Just click-and-hold, and when you drag, you'll see a small insertion line. Drag it to the desired spot, then drop.

[robg adds: This only works in Firefox 3, which is currently in developer (but public) beta -- I've actually been using Firefox 3 as my primary browser for the last month or so. While it's very stable, there are still a few bugs and things that don't quite work right, so you may not want to use it full time just quite yet. The final version should be out in the near future, though.]
  Post a comment  •  Comments (3)  
  • Currently 1.33 / 5
  You rated: 1 / 5 (9 votes cast)
 
[7,390 views]  View Printable Version
Download any band's song off MySpace using Safari Web Browsers
So I have seen people using all types of ways to download songs off MySpace band pages, but I just found a very easy way using Safari and TextEdit or any type of text editor. First, open TextEdit (or any other program you can make a web file with) and make sure the new document setting (in Preferences) is set to plain text, then open a new file. Put in the following HTML code:
<a href="">asdad</a>
Then choose File » Save As, and change the default .txt extension in the filename to .html and hit Save. A window will appear; click Use .html to confirm the extension. Test the file by control-clicking and selecting Safari from the Open With menu. Safari should open the file and display a link. Leave the file open in TextEdit for later use.

Next, find the band page you would like to download the song from. In the menu bar in Safari, select View » View Source. In the menu bar, select Edit » Find » Find (or just press Command-F), and type embed into the find field. Near the second embed, there will be a long URL that looks something like this:
http://lads.myspace.com/music/musicplayer.swf?ABC123DEF456
(The capital letters and numbers at the end of the URL will differ each time.) Copy all of the URL, and then open it in a new tab or window. Let the song you want to download play completely. Now select Window » Activity in the menu bar. You'll see all open tabs and windows. Pick the one for the MySpace music player, and find a URL there that starts with http://cache....

Now do this next bit within 30 seconds, as MySpace refreshes the link. Double-click that cache link to open in a new window. Copy the URL and paste into the TextEdit document, placing it between the double-quotes:
 <a href="http://cache....">asdad</a>
Save the file, open it in Safari, then control-click on the link and chose Download Linked File from the contextual menu. Your song will now start to download.

[robg adds: I haven't tested this one; I imagine there may be simpler solutions, but I don't have a MySpace account.]
  Post a comment  •  Comments (8)  
  • Currently 2.19 / 5
  You rated: 3 / 5 (16 votes cast)
 
[94,528 views]  View Printable Version
Drag and drop files to Safari's Choose File button Web Browsers
It's possible to drag and drop files to the Choose File button you'll see on some web sites -- like the one you'll see if you click the "Attach a File" button in Gmail. You do not have to click the Choose File button and then navigate the Open dialog; just drag and drop directly from the Finder to that button. This is quite handy when working with Gmail and attachments.

[robg adds: This was originally published in this post on the author's blog, where a screenshot provides some additional clarification, if you need it.]
  Post a comment  •  Comments (3)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[11,058 views]  View Printable Version
Automatically update WebKit via script and launchd Web Browsers
WebKit doesn't have any way to automatically update to the latest nightly build, so I put together a quick script to do so.

It has the option of automatically backing up the currently installed version of WebKit, or just removing the old version and updating to the newer version. There's also optional logging of the old WebKit build, the new WebKit build, and what time it was replaced. By creating a launchd agent, it can be run automatically every night. The script is:
#!/bin/sh
#Automatically update to the latest WebKit nightly build.
#By Zach Drayer, zach@drayer.name
#-----------------------------------------------------------------------------
#Set environment up
#-----------------------------------------------------------------------------
export LOGGING_LOCATION="$HOME"/Library/Logs/WebKitUpdate.log
export WEBKIT_BACKUP_LOCATION=""$HOME"/Documents/WebKit Backup/"
curl -LOs "http://nightly.webkit.org/index.html" 
export WEBKIT_NIGHTLY_BUILT_VERSION=`cat index.html | grep mac/WebKit-SVN | grep Download | cut -c 47-51`
if [ -d /Applications/WebKit.app ]; then
  export WEBKIT_INSTALLED_VERSION=`cat /Applications/WebKit.app/Contents/Resources/VERSION`
  if [ "$WEBKIT_NIGHTLY_BUILT_VERSION" == "$WEBKIT_INSTALLED_VERSION" ]; then
    exit
  fi
fi
export WEBKIT_TEMP_INSTALL_LOCATION="/tmp/WebKit-$WEBKIT_NIGHTLY_BUILT_VERSION-$RANDOM"
mkdir "$WEBKIT_TEMP_INSTALL_LOCATION"
cd "$WEBKIT_TEMP_INSTALL_LOCATION"
#-----------------------------------------------------------------------------
#Checks if WebKit is running or not
#-----------------------------------------------------------------------------
ps aux | grep Web >> web.txt
cat web.txt | grep WebKit >> web2.txt
WEBKIT_RUNNING=`cat web2.txt`
if [ "$WEBKIT_RUNNING" != "" ]; then
  kill -9 `cat web2.txt | sed s/"$USER"      //g | cut -c 1-5`
fi
#-----------------------------------------------------------------------------
#Back WebKit up
#-----------------------------------------------------------------------------
if [ -d /Applications/Webkit.app ]; then
  #Comment out this if/elseif block if you don't want to back WebKit up
  #Start commenting below --v
	if [ -d "$WEBKIT_BACKUP_LOCATION" ]; then
		mv /Applications/WebKit.app "$WEBKIT_BACKUP_LOCATION"WebKit-r"$WEBKIT_INSTALLED_VERSION".app
	else
		mkdir "$WEBKIT_BACKUP_LOCATION"
		mv /Applications/WebKit.app "$WEBKIT_BACKUP_LOCATION"WebKit-r"$WEBKIT_INSTALLED_VERSION".app
	fi
	curl -LOs "http://nightly.webkit.org/files/trunk/mac/WebKit-SVN-r"$WEBKIT_NIGHTLY_BUILT_VERSION".dmg"
else
  #Stop Commmenting here --^
#Also uncomment the next line if you dont back WebKit up
#	rm -rf /Applications/WebKit.app
	curl -LOs "http://nightly.webkit.org/files/trunk/mac/WebKit-SVN-r"$WEBKIT_NIGHTLY_BUILT_VERSION".dmg"
fi
#-----------------------------------------------------------------------------
#Install WebKit
#-----------------------------------------------------------------------------
hdiutil attach -quiet "$WEBKIT_TEMP_INSTALL_LOCATION"/WebKit-SVN-r"$WEBKIT_NIGHTLY_BUILT_VERSION".dmg
cp -R /Volumes/WebKit/WebKit.app /Applications/
hdiutil detach -quiet /Volumes/WebKit
rm -rf "$WEBKIT_TEMP_INSTALL_LOCATION"
#-----------------------------------------------------------------------------
#Logging
##Comment this block out if you dont want a log of 
#-----------------------------------------------------------------------------
echo "WebKit build " $WEBKIT_NIGHTLY_BUILT_VERSION " replaced build " $WEBKIT_INSTALLED_VERSION " on " `date` 
>> $HOME/Library/Logs/WebKitUpdate.log
A sample plist for a launchd agent looks like this: Alternately, you can download the script here, and the plist here.

[robg adds: This script worked as described, though I didn't test the launchd agent. Depending on your connection speed, it may take a few minutes to run, so give it time.]
  Post a comment  •  Comments (9)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[15,003 views]  View Printable Version
Use a free plug-in to add 'close on middle click' to Safari Web Browsers
Firefox has a neat feature for people with multi-button mice: clicking a tab with the middle button will close that tab. Safari doesn't have this feature, but using SIMBL and this free plug-in I wrote, you can have it. I've tested this on Safari 3.1 on Leopard, and Safari 3.0 on Tiger, and it works in both OSes and Safari versions.

It's released under the GPL, so you can download and view the source if you wish.
  Post a comment  •  Comments (8)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[10,204 views]  View Printable Version
Open Firefox Google searches in new tabs/windows Web Browsers
I always run web searches directly from the toolbar field in my web browsers. In Safari, as explained in this hint, you can search directly in a new window (or tab, depending on your settings) by pressing Command-Enter in the search field.

In Firefox, however, this won't work. Instead, use Option-Return (which also works in the URL bar itself), and you'll get your search results in a new tab or window.
  Post a comment  •  Comments (4)  
  • Currently 1.78 / 5
  You rated: 1 / 5 (9 votes cast)
 
[16,454 views]  View Printable Version
Load Gmail even if it seems to be locking up Web Browsers
A few times recently I've been unable to access my Gmail account using Safari or Firefox. I click on my bookmark link to gmail.com and the page freezes, seemingly while loading data from google-analytics.com, according to the status bar. I'm not sure if this is because I've got ad blocking software installed, but the problem eventually goes away after a few hours.

I figured that login system failure is the issue, rather than the service itself, so I went to google.com and logged in there using the Sign-in link at the top right of the page. Then I clicked the Mail link at the top left. Hey presto -- I could access my Gmail, although it was still slow and cranky (IM contacts wouldn't load, for example). But at least I could access my messages.

I'm not sure if this is just a Mac issue or whether it affects all platforms -- a quick search reveals that it does indeed seem to be surprisingly prevalent. But I thought I'd submit it anyway.
  Post a comment  •  Comments (6)  
  • Currently 1.60 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[5,933 views]  View Printable Version