--专题: 苹果
返回正常中文阅读

白金译作 在Safari新标签页中打开链接

3154个读者 翻译: Shorey  04/02/2008 原文 引用 双语对照及眉批

删除:
把眉批拖到这里

After browsing for a few hours in Safari, it\'s possible to end up with a dozen windows or so because of links that open a new window (links with target="_blank"). I've always wished there was a way to have these links open in a new tab instead of a new window (sometimes referred to as single window mode). 

In the latest Safari 3.1, Apple finally added a (hidden) preference to do just this! To enable single window mode, which forces all links that would normally open a new window appear in a new tab instead, we only need to enable the TargetedClicksCreateTabs preference using the following command (paste it into Terminal):

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

[robg adds: This worked for me, but note that it will create those new tabs in the foreground, not the background. Command-clicking the link, however, will open the page in a new tab in the background (this has always been true, as I recall). The preference setting is mostly useful for sites you haven\'t visited before -- with it set, you\'ll not have window proliferation if you just click instead of command-clicking. To undo the setting, you can just delete the preference: defaults delete com.apple.Safari TargetedClicksCreateTabs. Make sure Safari\'s not running before you use either command.]

用Safari浏览网页一段时间后,你的桌面上可能已经布满了成打的窗口。那是因为有些网页默认是从新窗口打开(带有target="_blank"的链接)。我常常希望从新标签中打开这些链接而不是新开一个窗口(所谓“单窗口模式”)。

 

在最新的Sarifa 3.1版中,Apple添加了一个(隐藏的)设置来实现这一点!要实现单窗口模式来显示本来会在新窗口中打开的链接,我们只要激活TargetedClicksCreateTabs属性就行了(粘贴到Terminal中执行):

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true

[robg说明:在 我的机子上这个方法行得通,但要注意如此那些新建的标签会出现在最前面,而不是在后面。而按住Command键同时点链接的方法则使新标签在后台打开(我试过都是如此)。在你浏览你从没去的网站时上述方法很有效——这样你就不会在点击链接后出现太多的窗口。要撤消这个设置,你只要用如下命令删除就行 了:defaults delete com.apple.Safari TargetedClicksCreateTabs。另外请注意运行这两个命令前一定要关闭Safari。]


继续阅读
  • Steve Jobs的十句金玉良言

    "I think we're having fun. I think our customers really like our products. And we're always trying ...

  • 乔布斯:关于音乐的思考

    【这是乔布斯二零零七年二月六日发表在苹果公司网站上的反 DRM 宣言,据我所知,最早的中文版由 chengyuan 网友翻译并发表在「Blog 中文翻译」(现在似乎被删掉了,不过你还是可以在这里看到)...

  • 微软已死

    二零零七年四月 几天前,我突然意识到微软已死。当时我正在跟一个年轻的创业家讲 Google 和雅虎的区别。我说雅虎从一开始就被惧怕微软的心态给害了。这也是他们为什么要把自己定位为「媒体公司」而非技术...

  • 在 Apple TV 上跑 Mac OS X - 两千四百元人民币的苹果电脑

    【本文有删节--译者。】 Hackint0sh.org 的 semthex 网友与 AppleTVHacks.net 再下一城!我们把 Mac OS X 的内核整个儿换成自己改过的之后,完整的 Ma...

  • 讲演大师乔布斯

    如果你将来成了领导,比如首席执行官的话,那你就得有站在众人面前口若悬河的能力。商业领袖中擅长大型讲演的绝佳实例就是史蒂夫乔布斯。我之所以这么喜欢乔布斯的讲演风格,正是因为他没受过专业的讲演训练。他只...

  • 苹果推出革命性手机产品--MacWorld实录

    译者:这篇文章是作者亲历乔布斯(Steve Jobs)发布iPhone现场的记录。过10年回头再看,谁知这是不是历史时刻呢?以下时间均为美国西岸时间1月9日上午。本文翻译完成于美国西岸时间1月9日下...

  • 苹果CEO斯蒂夫乔布斯2005年在斯坦福大学毕业典礼上的演讲

    苹果CEO斯蒂夫乔布斯2005年在斯坦福大学毕业典礼上的演讲 Steve Job 2005年在斯坦福发表的牛B演讲 link 发现原来他老妈大学没毕业,他老爸高中没毕业,而他也没大学毕业,瞧这一家子...

  • 字体圆滑术、锯齿消除术与亚像素显示技术

    苹果和微软就如何在电脑屏幕上显示字体的问题一直意见相左。今时今日,两家公司都通过使用亚像素显示技术令字体在日常的低分辨率屏幕上显得更清晰。它们的区别则是理念上的。 -苹果基本上认为,算法应该尽量保留...

相关小组

标签:

内容有问题?请与我们联络。

译作评分

  • Currently 0.00/5
  • 1
  • 2
  • 3
  • 4
  • 5
 0.0  |  0 个评分