1

Whenever I go to safari History Menu -> Clear History, it asks for "Also Reset Top Sites" and if I check it, it resets my top sites.

Can't I include my Default "Top Sites"

eg. Stack Overflow, Server Fault, Super User

After clearing my history I have to re-add these sites to my top sites. Is there a way to manage my default top sites?

1
  • 1
    This feature isn't available in Safari. Just don't be surprised if it isn't possible to do this. That said, good luck! Aug 28, 2009 at 22:56

4 Answers 4

1

It looks like you can set the default top sites by editing a plist file for Safari.

The article that describes this process is here.

Even though this article mentions the beta, it should hold true for the release version of Safari 4 as well.

Edit:

It seems that Safari resets this file when you perform the reset. To get around this, you can lock the file, which should prevent Safari from writing over it.

I reset my top sites using the reset command after locking my top sites, and they stayed the same.

To lock a file, get the file info (Command + I) or File -> Get Info. In the pop up window, place a tick in "Locked" and then close the Window.

This, combined with manually editing the file to get what you want on there, should stop Safari from Mucking around with your top sites.

Edit 2:

There's more than one way to skin the proverbial cat.

From a terminal, issue the following commands:

  • cd ~/Library/Safari/
  • sudo chflags -R nouchg TopSites.plist
  • sudo chmod 444 TopSites.plist

The chflag nouchg removes the "user immutable" flag. I'm not entirely sure what user immutable means in this particular context, but I would say that it means we're not able to modify that file without being root.

Once it's had the flag removed, we can then chmod the file to 444 - which is completely read only. That should prevent Safari from making changes to it.

6
  • No ! No ! When I Reset Safari, It also resets that plist file. Aug 28, 2009 at 20:22
  • Bummer! I knew it was too easy! Let me think on it, and I'll see what I can come up with. Aug 28, 2009 at 20:23
  • Added some more information, maybe this will help. See the edit. Aug 28, 2009 at 20:55
  • 1
    Respected Sir, According to your instructions. I have added 5 sites to plist file that you suggested. After Editing I locked it. However After resetting the safari, safari loads top sites, not from plist file. Locked file has 5 web sites. & Safari is loading something different in " Top Sites ". Aug 28, 2009 at 21:18
  • Both the suggestions (lock file and chflags) don't seem to prevent Safari from resetting the top sites to the default list. Even tried changing the Get Info > Sharing & Permissions to make it read only yet it gets changed to the default list. May 21, 2013 at 0:52
1

You can add your own Top Sites by clicking the edit button at the bottom of the top sites view in Safari, at which point you can drag and drop websites into the various locations. You may also pin them, so that they don't move even if they are not visited as often as is required.

All non-pinned spaces can be used for the random algorithm to take care of.

There is currently no way, other than work-arounds like the one mentioned above by EvilChookie that would allow you to set up the "top sites" with defaults that you want to stick around when you clear the top sites.

If you don't want certain websites to show up in your history and or top sites, you can also enable "Private Browsing" at that point no website is cached, or added to the history list.

1

When you're at an address that you want on your Top Sites page, click and hold the + sign in the address bar. You'll be given the option to add the page to your Reading List or your Top Sites page. It will be pinned there by default.

0

Just turn on Private Browsing when you look at porn so it doesn't show up in Top Sites...I mean, I assume that's why you're asking...

1
  • No ! it's not like buddy. It remembers stackoverflow visited questions. so that my seniors can go through I learned. They don't share any thing to me, Then why do I even give chance to them? Sep 24, 2009 at 23:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .