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

Mark all RSS articles as 'read' in Safari 4 Beta Web Browsers
When I installed Safari 4 Beta, I started to play around RSS feeds for the first time. But there was one thing that made me crazy: I couldn't figure out how to mark all new articles as being "read." This is a problem if an RSS feed shows something like "38 new articles" and you just want to catch up in a hurry.

One day, when I hit the reload button, I found out that all articles were read after that. Tried it out on many RSS feeds in Safari 4 and it worked for all of them.

[robg adds: This also works in Safari 3, as was mentioned here briefly in the comments to this hint. Note that you'll probably also want to visit the RSS tab in Safari's Preferences and enable the "Highlight unread articles" option to more easily see which articles have not been read.]
  Post a comment  •  Comments (4)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[7,085 views] Email Article To a Friend View Printable Version
Set browser window size and position via URL parameters Web Browsers
Setting your home page to a defined size and position results in much more consistency in subsequent windows. So I use the following code to set window size and position, defined by URL parameters, before redirecting to my home page. These parameters are: width of window, height of window, horizontal position of window, vertical position of window, and link to home page.
<body onload='z=window.location.search.substring(1).split(","); s=z.length; if (s>1) { window.resizeTo(z[0], z[1]); if (s>3) { x=z[2]; y=z[3]; if (1>x) { x=1 }; if (1>y) { y=1 }; window.moveTo(x, y); if (s>4) { window.location=z[4] } } }'>
To use this, you can either use this page on my server (it also has further details and a demonstration), or create your own HTML page that uses the above tag. You'd then load that page, with your preferred size and parameter settings, and append your home page URL to the end of the URL. Alternatively, you can copy the page from my server to your local computer, and modify it to meet your needs.

Note that I am only advocating that those who wish to can opt to control the default size/position of their home page. Putting such code on public pages would be most unpopular. My experience is that, for various reasons, a few hours web browsing can result in browsers being closed with the final page in an unwanted position. I am surprised that browsers don't come with a control to at least start the day with user defined window size and position. There has been considerable recent interest in bookmarklets and JS in home page links (does not work for WebKit) to achieve this. My page attempts to provide a simple cross browser/platform solution.

[robg adds: I tried this via the author's page, and it worked as described. Note that, after reading some of the comments indicating some confusion about this hint, Neville sent me some additional clarifying text, which I have now included in the hint itself.]
  Post a comment  •  Comments (36)  
  • Currently 1.56 / 5
  You rated: 1 / 5 (9 votes cast)
 
[19,420 views] Email Article To a Friend View Printable Version
Permanently disable Safari's favicons Web Browsers
If you'd prefer Safari never remembered favicons, here's a simple way to do just that, while also removing any currently-stored favicons. Quit Safari if it's running, then open Terminal (in Applications » Utilities) and enter these commands (don't enter the $; that's just the prompt):
$ cd ~/Library/Safari
$ rm WebpageIcons.db
$ ln -s /dev/null WebpageIcons.db
The first command sets the proper working directory, the second removes the current favicon database, and the third recreates the database file, but links it to /dev/null, so that any output written to the file is summarily discarded.

[robg adds: This works as described, though I personally prefer to keep the favicons. Note that this hint replaces this one, which only works for older versions of Safari.]
  Post a comment  •  Comments (7)  
  • Currently 1.89 / 5
  You rated: 2 / 5 (9 votes cast)
 
[12,415 views] Email Article To a Friend View Printable Version
Disable Safari 4 Beta's Top Sites web page previews Web Browsers
In Safari 4 Beta, the Top Sites page displays thumbnails of your top sites. This feature can take a lot of disk space; if you'd like to use Top Sites, but disable the thumbnails completely (as opposed to just disabling their updates, which you can do via Safari's menus), here's how.

Quit Safari, open Terminal (in Applications » Utilities), and enter this command:
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
Relaunch Safari, and it will no longer create snapshots of pages you visit.

[robg adds: I tested this, and it works. However, to really take advantage of it, you'll also want to delete the existing snapshots from your drive. The easy way is to use Safari -> Reset Safari, and leave only 'Remove all webpage preview images' checked, then click Reset.

If you delete all the existing previews and implement this hint, you'll see a generic placeholder for each page on the Top Sites screen. To get your previews back, quit Safari, and run this command in Terminal: defaults delete com.apple.Safari DebugSnapshotsUpdatePolicy. You won't see new previews until you visit each site on the Top Sites at least once.]
  Post a comment  •  Comments (17)  
  • Currently 2.63 / 5
  You rated: 5 / 5 (16 votes cast)
 
[44,869 views] Email Article To a Friend View Printable Version
Quick history browsing in Safari 4 beta Web Browsers
I just accidentally discovered how to rapidly access the new 'Cover Flow' view mode for browsing history in Safari 4 beta.

I have my windows set to open with the 'Top Sites' view. From here, hitting Tab will take the input from the URL entry box to the Google Search box. If you hit Tab again (i.e. twice in succession in a new window), the whole window will be replaced with the Cover Flow view of your browsing history.

[robg adds: The reason this trick works is that the Top Sites page contains a search box at the lower right for history; it's two Tab presses away from the URL entry bar. Note that this only works if you've got the "Full keyboard access" setting (on the Keyboard Shortcuts tab of the Keyboard & Mouse System Preferences panel) set to "Text boxes and lists only." If it's set to "All controls," the second Tab will move from the Google box to the URL bar. I also noticed that the history search box doesn't recognize Shift-Tab to move backwards out of it; you'll need to press Tab again to jump back to the URL entry bar.]
  Post a comment  •  Comments (11)  
  • Currently 2.10 / 5
  You rated: 5 / 5 (10 votes cast)
 
[8,790 views] Email Article To a Friend View Printable Version
Cursor positioning in the Safari 4 Beta Google search box Web Browsers
In Safari 3, you could use the Up Arrow key to get to the front of the Google search field (while entering search terms) if you wanted to add quotation marks, or make other changes. With Safari 4 Beta's new Google Suggestions feature, this editing trick stopped working. However, you can use Command-Up Arrow instead, which will mimic the Safari 3 behavior.
  Post a comment  •  Comments (7)  
  • Currently 1.43 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)
 
[6,601 views] Email Article To a Friend View Printable Version
Spotlight your way to the topsites page in Safari 4 Beta Web Browsers
As this site has pointed out, you can set your homepage to (or create a bookmark for) the new Top Sites page in Safari 4 Beta by using the URL topsites://. I wanted to be able to access the bookmark I made for this page from Spotlight. When I tried though, I got an error dialog saying that "There is no default application for URL topsites://."

RCDefaultApp, which I use, lets me change URL's default apps, but I can't add URL types. User shellac over at the Macintosh Achaia at arstechnica pointed me to More Internet, which allows one to add URL types (as well as change their handling apps). So I added topsites:// as a URL type, and specified that it open in Safari 4 Beta.

This works like a charm. Now when I Spotlight my Top Sites bookmark (or click on a topsites:// link), it opens the Top Sites page in Safari 4 Beta.
  Post a comment  •  Comments (1)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[6,961 views] Email Article To a Friend View Printable Version
Enhance experience on twitter.com with CSS3 animations Web Browsers
How do you enjoy tweeting on Mac OS X? Do you feel better when actually using an iPhone Twitter client such as the iPhone's Tweetie and others? In my expeirence, most Mac OS X clients don't provide the rich set of information available from twitter.com. So I wrote an experimental bit of code that works on twitter.com.

pbtweet is small javascriptlet (bookmarklet) that relies on GreaseKit and shows conversation chains and images sent from twitpic.com and brightkite.com as cool icon badges on twitter.com. All animation effects and interactive motions are based on WebKit's early implementation of CSS3 transitions. Thus, pbtweet works only Safari, and I recommend Safari 4. Here are some of pbtweet's features:
  • Shows conversation chain balloons based on in_reply_to_status_id
  • Removes redundant tweets
  • Picture posts to twitPic.com and brightkite.com are placed on twitter.com as picture badges
  • Inserts a [more] page when you scroll down to page bottom
  • In the dev version only, new tweets are automatically updated at the top of timeline
Go to this URL, and drag the pbtweet bookmarklet onto your bookmark bar. (If you're using Safari 4, I recommend using the dev version). Then click the bookmarklet while viewing twitter.com.

[robg adds: The submitter's native language isn't English, so I've edited the submission quite a bit; I apologize if I got anything wrong while editing. From reading the linked page, I think you'll also need to install GreaseKit, as well as a user.js file (on the linked page) for use with GreaseKit. In case it's not obvious, I haven't tested this one.]
  Post a comment  •  Comments (2)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)
 
[6,646 views] Email Article To a Friend View Printable Version
Fix locked Safari 4 Beta / SafariStand windows Web Browsers
Very often I deal with Safari 4 Beta's windows crashing. Usually it is caused by typing outside a text box, after recently using one. When the problem occurs, the window locks up, and appears to select all of the content (a-la Command-A), and it's sometimes accompanied by a CPU spike as well. This is very irritating indeed. (Note that I have SafariStand installed, which might be the source of the problem, but I'm not sure.)

Solution: Control-click on Safari 4 Beta's Dock icon, and select New Window from the contextual menu. A new window should open, and all of the actions you took (post-freeze) will execute rapidly in this window. You may then close that window and return to the original, which will be working again.

Once frozen, I do not think Command-N will work, so you really have to use the Dock. Also, once one tab has frozen, clicking into any other currently-open tab will cause it to freeze as well. It would be nice to have a script for this, but despite it being very simple, I am far too lazy to write one.
  Post a comment  •  Comments (7)  
  • Currently 1.14 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (7 votes cast)
 
[10,468 views] Email Article To a Friend View Printable Version
Change Safari's search box to search Google UK Web Browsers
Here's how to set Google UK as the search engine in Safari. You can use the following technique to change it to any location you prefer -- for example, France (.fr) -- but you must add (or remove) other characters to the string to keep it the same length. Please note you should not remove any of the URL, and you should also not remove or add %@ characters, as they are used as variables.

Here's what to do:
  1. Control-click on Safari in the Finder and select Show Package Contents from the pop-up menu.
  2. Navigate into the Contents » MacOS folder, and make a copy of the Safari file you find there. This is your backup in case anything goes wrong.
  3. Open the Safari file in MacOS with TextEdit. It will mainly look like a bunch of gibberish.
  4. Press Command-F to bring up the Find dialog, and then find this string: http://%@.google.com/%@?q=%@&ie=UTF-8&oe=UTF-8.
  5. Change that string to http://%@.google.co.uk/%@?q=%@&=UTF-8&oe=UTF-8. Note there are two changes here: .com to .co.uk (which adds two characters) and ie=UTF to =UTF (which removes two characters). The new string must be exactly the same length as the old or Safari will not work!
  6. Save your changes, close the file in TextEdit, and launch Safari.
I take no responsibility if you break anything, so make sure you back up the Safari file first!

[robg adds: Occasional hints editor Kirk McElhearn did some testing with the International System Preferences panel for me on this one -- Safari will use the local version of Google that matches the settings in the Language/Format tabs, as long as you also delete your Google cookies when making the changes. So this hint would mainly be useful to those who wish to have one location set via the International panel, but want to use a different local version of Google.

Please note that we covered something very similar nearly six years ago; this version is just focused on changing Google's default country, as opposed to changing the search engine entirely.

Update: More than likely, this hint will cause Safari's code signature to fail, resulting in Safari no longer being able to access the Keychain -- see this hint for more details on this problem (in 10.5 only).]
  Post a comment  •  Comments (13)  
  • Currently 2.84 / 5
  You rated: 1 / 5 (19 votes cast)
 
[75,346 views] Email Article To a Friend View Printable Version