Back to Mobile View

Skip to Content

Dear Aunt TUAW: Help me disable in-line tool tips and advertising

Dear Aunt TUAW,

There are works [sic] that are highlighted and linked to pop-ups when I go to webpages and pass my mouse pointer over them and I would like that to stop.

Your loving nephew,

Sabon

Dear Sabon,

Auntie isn't entirely sure whether you're talking about tool tips or in-line advertising. So she's going to answer both of these possible questions.

Tool tips are those yellow pop-ups that appear when you hover your mouse on top of URL. They look something like this.

It's a feature that helps expose the link you're looking at. It gives you more information about where you'll go if you click that URL. To get rid of these pop-ups open a Terminal window and type in the following. (If you don't know what Terminal is, or how to use the command line, this write-up probably isn't for you.)

defaults remove com.apple.Safari WebKitShowsURLsInToolTips

Quit and restart Safari and your tool tips will be disabled. To restore the feature, use this command, entering it into a Terminal window.

defaults write com.apple.Safari WebKitShowsURLsInToolTips 1

And, again, quit and restart Safari for your changes to take effect.

Here's the other question Auntie thought you might be asking. If you've ever seen those underlined (typically green) links, you know how utterly annoying they can be. Here's what happens when your mouse goes near that link.

Irritating, isn't it? So what can you do? Auntie turned to Uncle TJ for the answer. And she warns you that it too involves a bit of command-line ability -- in fact slightly more than "a bit". You will need your administrator credentials here.

Head on over to someonewhocares.org and copy their hosts file to your Mac as hosts.withlove. This file contains a gadzillion host rules that block out a lot of really irritating Internet hosts, protecting you from some (but not all) spyware, pop-ups, and so forth. Or, as they put it "Using a Hosts File to make the Internet not suck (as much)".

In Terminal, make sure the saved file is created without an txt extension, i.e. hosts.withlove, not hosts.withlove.txt. Move the file into the /etc folder, e.g.

sudo mv ~/Desktop/hosts.withlove /etc/hosts.withlove

In /etc, copy hosts to hosts.original. This creates a backup of your original hosts file that you can revert to if needed.

sudo cp hosts hosts.original

Use your favorite text editor to match up the start of the withlove version to match the original version, just so you're working more or less from the same starting point. Then move it into place.

sudo cp hosts.withlove hosts

To test this, you don't have to restart Safari but you should re-load whatever page you had seen the in-line advertising. For example, the Business Insider page that Auntie captured above now looks like this after enabling the withlove version of the hosts file.

Yay!

Hugs,

Auntie T.



Categories

Mac

Auntie isn't entirely sure whether you're talking about tool tips or in-line advertising. So she's going to answer both of these ... questions
 

Add a Comment

*0 / 3000 Character Maximum Comment Moderation Enabled. Your comment will appear after it is cleared by an editor.

8 Comments

Filter by:
VanillaSpice

The advertising services will eventually figure out work-arounds to all the solutions presented here.

The only way to end this menace for good, is to make it clear to website administrators that if they utilise one of these advertising services, you will not patronise their website.

Seriously, there are so many alternative options for just about any good website (TUAW excluded) it is easy for you to vote with your pageviews. Until we take a stand, web administrators will continue to use these horrid things.

July 04 2011 at 9:48 PM Report abuse rate up rate down Reply
Anson Liu

A good article, Now I'll know what to do about those ads!
How do I ask Aunt TUAW something?

July 02 2011 at 1:09 PM Report abuse rate up rate down Reply
Michael

Rather than playing around with the hosts file I suggest that you install Glimmer Blocker. One of the advantages is that you can block ads on all browsers at the same time.

July 01 2011 at 4:11 AM Report abuse rate up rate down Reply
Vertigo

You can also use Chrome or Firefox, install the Adblock Plus addon and subscribe to the "EasyList" subscription. These and a lot of other annoying advertisements will be blocked.

June 30 2011 at 2:52 PM Report abuse rate up rate down Reply
Michael

Damn! That was a GREAT tip on changing the host file! :) Thanks!

June 30 2011 at 2:10 PM Report abuse rate up rate down Reply
cookingscience

Deeper is a much better alternative to the command line.

http://www.titanium.free.fr/download.php?sid=4b636d6cdf262949332180b37e802d7c

June 30 2011 at 1:27 PM Report abuse rate up rate down Reply
tnydigiaco

As for those annoying green (and sometimes they have double underlines) links try JavaScript Blacklist Safari Extension
http://homepage.mac.com/drewthaler/jsblacklist/

June 30 2011 at 12:40 PM Report abuse rate up rate down Reply
evanskis

Wow you're the best auntie, that second part just saved my computer from any more excessive banging on walls =)

June 30 2011 at 12:35 PM Report abuse rate up rate down Reply
Buy an ad here

Tweets

© 2012 AOL Inc. All Rights Reserved.